Programming Perl

Programming PerlSearch this book
Previous: 3.2.146 shmreadChapter 3
Functions
Next: 3.2.148 shutdown
 

3.2.147 shmwrite

shmwrite ID, STRING, POS, SIZE

This function writes to the shared memory segment ID starting at position POS for size SIZE (by attaching to it, copying in, and detaching from it). If STRING is too long, only SIZE bytes are used; if STRING is too short, nulls are written to fill out SIZE bytes. The function returns true if successful, or false if there is an error. On error, it puts the error code into $!. This function is available only on machines supporting System V IPC.


Previous: 3.2.146 shmreadProgramming PerlNext: 3.2.148 shutdown
3.2.146 shmreadBook Index3.2.148 shutdown