map (f1($_), (10, 20)) # convert f1 to $_-style my $x = do {local $_ = 10; f2}; # or, if you just want to call that subroutine, f2 for (15);
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: $_ functions vs argument-using functions
by Jenda
in thread $_ functions vs argument-using functions
by pldanutz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |