Perl msgctl Function
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.
Following is the simple syntax for this function:
msgctl ID, CMD, ARG
This function returns 0 but true if the system function returns 0 and 1 on success.
Following is the example code showing its basic usage:
When above code is executed, it produced following result