Mega Code Archive

 
Categories / Perl / Language Basics
 

$! is the error number

$! = 1; print "$!\n"; print "Error number " , 0 + $! , " occurred.";