in reply to Re^2: Assigning to the CODE slot of a GLOB whose REF is held in a lexical?
in thread Assigning to the CODE slot of a GLOB whose REF is held in a lexical?
That's because it's a glob reference, not a code reference:
sub foo { "foo" } $fooref = \*foo; print *$fooref{CODE}->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Assigning to the CODE slot of a GLOB whose REF is held in a lexical?
by ikegami (Patriarch) on Nov 16, 2004 at 07:42 UTC | |
by revdiablo (Prior) on Nov 16, 2004 at 07:50 UTC | |
by ikegami (Patriarch) on Nov 16, 2004 at 07:54 UTC |