Created
August 23, 2009 08:09
-
-
Save gfx/173201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl -w | |
use strict; | |
use PadWalker qw(var_name); | |
sub validate(\@@){ | |
my $args = shift; | |
foreach my $var(@_){ | |
print var_name(1, \$var), "\n"; | |
} | |
} | |
validate(@_ => my($foo, $bar, $baz) ); | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment