Some Perl Special Variables Some Global Special Variables 11 of 28 : [PREV] [NEXT]

$! ($OS_ERROR or $ERRNO)

  • In a numeric context, yields the current value of the errno variable, identifying the last system call error.
  • In a string context, yields the corresponding system error string.
open FH, "myfile" or die "Cannot open file: $!";

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/