Perl msgrcv Function
This function receives a message from the queue ID, placing the message into the variable VAR, up to a maximum size of SIZE.
Following is the simple syntax for this function −
msgrcv ID, VAR, SIZE, TYPE, FLAGS
This function returns 0 on error and 1 on success.
Following is the example code showing its basic usage −
When above code is executed, it produces the following result −