Tuesday, September 20, 2011

What is the difference between warn() and die() in Perl?

The warn function simply raises a warning message to be printed to STDERR. On the otherhand, die function prints error message to the STDERR and terminates the execution of the script as well.

No comments :