laziness, impatience, and hubris | |
PerlMonks |
Re^3: Taking reference to functionby syphilis (Archbishop) |
on Apr 16, 2009 at 06:20 UTC ( [id://757852]=note: print w/replies, xml ) | Need Help?? |
Why does the coderef point to the old block? That's not a code reference, it's a scalar reference. $string_ref is a reference to the scalar, $string. Doing a print $$string_ref; will print out whatever's *presently* in $string. Update: Oops ... looking at Freezy's post in the context of the entire thread, I think I might've missed the point somewhat in my reply. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|