Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $cake = 'chocolate';
    my $pie = 'apple';
    eval slurp("config.pl");
    
  2. or download this
    ## slurp - read a file into a scalar or list
    sub slurp {
    ...
        close F;
        return @a;
    }
    
  3. or download this
    $pie = 'pecan';
    cake = 'fairy';
    
  4. or download this
    if($@){
        print "Some errors happened...\n\n";
        print $@."\n\n";
        print "Oh well...\n";
    }