Reference: shmget
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:37:58Z

#

| Chapter 5 Function Reference |

## shmget

    shmget key, size, flags

Calls the System V IPC system call, `shmget(2)`. The function returns the shared memory segment ID, or the undefined value if there is an error. On error, it puts the error code into `$!`. Before calling, you should say:

>     require "ipc.ph";
>     require "shm.ph";

This function is available only on machines supporting System V IPC.

Reference: shmctl |  | Reference: shmread