in reply to Re: 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?
Doesn't for me:
sub foo { "foo" } $fooref = \*foo; &$fooref();
gives
Not a CODE reference at testing.pl line 3.
"Another Update" doesn't work for either:
$bar = 1; $barref = \*bar; *$barref = sub { "bar" }; &$barref();
gives
Not a CODE reference at testing.pl line 4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assigning to the CODE slot of a GLOB whose REF is held in a lexical?
by revdiablo (Prior) on Nov 16, 2004 at 07:38 UTC | |
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 |