Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
        print "HANDLE: $handle\nTHING: $thing\nOTHER: $other\n";
    }
    
  2. or download this
    #!/usr/bin/perl 
    
    ...
        MAPARGS \my($handle, $thing);
        print "HANDLE: $handle\nTHING: $thing\n";
    }
    
  3. or download this
    #!/usr/bin/perl 
    
    ...
         my %args = Params(qw(handle thing ?other))->args(@_);
        print "HANDLE: $args{handle}\nTHING: $args{thing}\nOTHER: $args{ot
    +her}\n";
    }
    
  4. or download this
    #!/usr/bin/perl 
    
    ...
        my $args = check( $tmpl, \%hash ) or die("Failed to parse args");
        print "HANDLE: $args->{handle}\nTHING: $args->{thing}\nOTHER: $arg
    +s->{other}\n";
    }
    
  5. or download this
    #!/usr/bin/perl
    
    ...
    
        print "HANDLE: $handle\nTHING: $thing\n";
    }