- or download this
#!/usr/bin/perl
use strict;
...
print "HANDLE: $handle\nTHING: $thing\nOTHER: $other\n";
}
- or download this
#!/usr/bin/perl
...
MAPARGS \my($handle, $thing);
print "HANDLE: $handle\nTHING: $thing\n";
}
- 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";
}
- 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";
}
- or download this
#!/usr/bin/perl
...
print "HANDLE: $handle\nTHING: $thing\n";
}