Thanks to visit codestin.com
Credit goes to perldoc.perl.org

msgget KEY,FLAGS

Calls the System V IPC function msgget(2). Returns the message queue id, or undef on error. See also "SysV IPC" in perlipc and the documentation for IPC::SysV and IPC::Msg.

Portability issues: "msgget" in perlport.