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.