Perl msgctl Function


Advertisements


Description

This function calls the system function msgctrl( ) with the arguments ID, CMD, and ARG. You may need to include the IPC::SysV package to obtain the correct constants.

Syntax

Following is the simple syntax for this function −

msgctl ID, CMD, ARG

Return Value

This function returns 0 but true if the system function returns 0 and 1 on success.

Example

Following is the example code showing its basic usage −


When above code is executed, it produces the following result −




Advertisements