in reply to Re: anonymous sub, packages, global variables
in thread anonymous sub, packages, global variables
sorry but thats nonsense, your assigning a coderef to the scalar slot of the glob, not to the code slot!
update:
DB<101> $coderef=sub {print "nonsense"} DB<102> *glob=\$coderef DB<103> &$glob nonsense DB<104> glob()
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: anonymous sub, packages, global variables
by wind (Priest) on May 17, 2011 at 18:49 UTC | |
by LanX (Saint) on May 17, 2011 at 18:54 UTC |