start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.146 shmread Chapter 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 shmread Programming Perl Next: 3.2.148 shutdown
3.2.146 shmread Book Index 3.2.148 shutdown