Perl: die()
die()
open(FH,"/etc/passwd") or die("Can't open password file!");
will produce something like:
Can't open password file! at myprog.pl line 25
open(FH,"/etc/passwd") or die("Can't open password file!\n");
on the other hand, will produce:
Can't open password file!