![]() |
|
XP is just a number | |
PerlMonks |
Re^6: Dynamically constructed function callsby ysth (Canon) |
on Nov 04, 2004 at 05:36 UTC ( #405097=note: print w/replies, xml ) | Need Help?? |
*$_ = sub ... doesn't work if $_ is an integer.Not true. Did you try it?
$_ isn't a lexical, so it doesn't get captured, producing "I am world" for output.Correct. What's after the -> has to start with a $, so do { @ARGV } wouldn't work even if it did return a scalar.dragonchild was responding to my suggestion that ->do{} be made to work.
In Section
Seekers of Perl Wisdom
|
|