msgget KEY,FLAGS

Calls the System V IPC function msgget(2). Returns the message queue id, or the undefined value if there is an error. See also "SysV IPC" in perlipc and IPC::SysV and IPC::Msg documentation.