Perl die Function
This function prints the value of LIST to STDERR and calls exit with the error value contained in $!.
Following is the simple syntax for this function:
This function does not return any value.
Following is the example code showing its basic usage:
When above code is executed, it produced following result: