Help for this page

Select Code to Download


  1. or download this
    # Try and catch using prototypes. (Almost verbatim from perlsub.)
    
    ...
    } catch {
        /phooey/ and print "unphooey\n";
    };
    
  2. or download this
    # Nested subroutines.
    
    ...
    }
    
    print frobnicate_again('foo'), "\n";
    
  3. or download this
    my $ip = 127.0.0.1;
    printf "%vd\n", $ip;