But $a and $b always have the risk to be lexicals from the outer scope², I wanted to avoid discussing that problem.¹
It's about naming after all...
Cheers Rolf
( addicted to the Perl Programming Language)
¹) compare this error
DB<108> my $a=3; sort {$a <=> $b} @a Can't use "my $a" in sort comparison at ...
²) being bound to another package can be solved by investigating the caller, but checking for lexicals involves padwalker.
In reply to Re^3: Want for a name?
by LanX
in thread Want for a name?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |