See the current Perl documentation for shmget.
Here is our local, out-dated (pre-5.6) version:

shmget - get SysV shared memory segment identifier

shmget KEY,SIZE,FLAGS

Calls the System
V
IPC function shmget. Returns the shared memory segment id, or the undefined value if there is an error. See also
IPC::SysV documentation.