Help for this page

Select Code to Download


  1. or download this
    eval {
      # some perl code here
    ...
    if ($@) {
      print "eval failed: $@\n\n" ;
    }
    
  2. or download this
                   If there is a syntax error or runtime error, or a "die"
    + state-
                   ment is executed, an undefined value is returned by "ev
    +al", and
                   $@ is set to the error message.  If there was no error,
    + $@ is
                   guaranteed to be a null string.