in reply to Re: if(my) scope
in thread if(my) scope
Gives:use strict; use warnings; use Devel::Peek; my $true = 1; my $ref; if ($true) { my $fred = 42; $ref = \$fred; } print Dump($$ref);
A reference count of 1, not 2?SV = IV(0x3b2e0) at 0x3b2e4 REFCNT = 1 FLAGS = (PADMY,IOK,pIOK) IV = 42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: if(my) scope
by ikegami (Patriarch) on Apr 16, 2009 at 15:53 UTC | |
by cdarke (Prior) on Apr 16, 2009 at 16:01 UTC |