Help for this page

Select Code to Download


  1. or download this
    # my test code
      catch    { print "unphooey again\n"; } ;
    
  2. or download this
    try {... some code to try ... } sub { ... some code to catch }
    
  3. or download this
    sub try (&@) {
        my($try,$catch) = @_;
    ...
    } sub {
        /phooey/ and print "unphooey\n";
    };
    
  4. or download this
    sub try (&$) {
        my($try,$catch) = @_;
        eval { &$try };
    ...
    } catch {
        /phooey/ and print "unphooey\n";
    };