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
In reply to Re^2: anonymous sub, packages, global variables
by LanX
in thread anonymous sub, packages, global variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |