Skip to content

Instantly share code, notes, and snippets.

@gfx
Created August 23, 2009 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfx/173201 to your computer and use it in GitHub Desktop.
Save gfx/173201 to your computer and use it in GitHub Desktop.
#!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