Perl msgget Function

Advertisements


Description

This function calls the System V IPC function msgget(2). Returns the message queue id, or the undefined value if there is an error.

Syntax

Following is the simple syntax for this function:

msgget KEY, FLAGS

Return Value

This function returns undef on error and Message queue ID on success.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result




Advertisements
Advertisements