in reply to $_ functions vs argument-using functions
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 Section
Seekers of Perl Wisdom