- or download this
for my $tmp ("a","b","c")
{
...
print "$tmp, $_\n";
}
}
- or download this
for ("a","b","c")
{
...
print "$__, $_\n";
}
}
- or download this
sub test
{
...
my $val=$_[0];
sub { print "$val, $_[0]\n" }
}
- or download this
sub test2
{
...
# fill in the BLANK with something that refers to
# test2's $_[0], not the anonymous sub's
}