Perl die Function

Advertisements


Description

This function prints the value of LIST to STDERR and calls exit with the error value contained in $!.

Syntax

Following is the simple syntax for this function:

die LIST

Return Value

This function does not return any value.

Example

Following is the example code showing its basic usage:


When above code is executed, it produced following result:




Advertisements
Advertisements