The above prints "Bacon!", as my intuition expects. Why does the coderef point to the old block?my $string = "Hello."; my $string_ref = \$string; $string = "Bacon!"; print $$string_ref;
In reply to Re^2: Taking reference to function
by Freezy
in thread Taking reference to function
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |