cvsuser     02/02/23 19:40:02

  Modified:    P5EEx/Blue/P5EEx/Blue exceptions.pod
  Log:
  clarified the eval syntax to catch exceptions
  
  Revision  Changes    Path
  1.4       +3 -2      p5ee/P5EEx/Blue/P5EEx/Blue/exceptions.pod
  
  Index: exceptions.pod
  ===================================================================
  RCS file: /cvs/public/p5ee/P5EEx/Blue/P5EEx/Blue/exceptions.pod,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -r1.3 -r1.4
  --- exceptions.pod    18 Feb 2002 19:01:21 -0000      1.3
  +++ exceptions.pod    24 Feb 2002 03:40:02 -0000      1.4
  @@ -247,10 +247,11 @@
   BLOCK to be compiled only once (at script compile time),
   so it is much more efficient and appropriate for 
   exception programming.
  +(Please note the semi-colon that must follow the BLOCK.)
   
     eval {
         &do_big_function();
  -  }
  +  };
   
   If any exception ("die") is thrown within the do_big_function(),
   the program will not terminate.  Control will simply be returned
  @@ -261,7 +262,7 @@
     Camel Book: Chapter 2: The Gory Details/Special Variables, $@
     Online Doc: man perlvar (or "perldoc perlvar")
   
  -The is the Perl synax error message from the last "eval" command.
  +The is the Perl syntax error message from the last "eval" command.
   Alternatively, it is the message of an exception that was thrown
   (using "die").
   If null, the last eval was parsed and executed correctly, with
  
  
  


Reply via email to