in reply to Re: scope of an autovivified variable?
in thread scope of an autovivified variable?
OK, but I'll have to take your word regarding Devel::Peek and it's output. I have no idea what it means (for now).
What I do know is this:
#!/usr/local/bin/perl -w use strict; use Data::Dumper; sub f { my $x; print Dumper($x); $x="abc"; } f; f;
And the output is:
$VAR1 = undef; $VAR1 = undef;
Whether the storage space is deallocated or not seems to be irrelevant with respect to general use. I can't get back to the original variable the second time around. Or at least, that's what it looks like. Perhaps some additional discussion about what you mean would help my feeble understanding.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: scope of an autovivified variable?
by ikegami (Patriarch) on May 11, 2011 at 22:15 UTC | |
by rmcgowan (Sexton) on May 11, 2011 at 22:55 UTC | |
by Marshall (Canon) on May 12, 2011 at 15:03 UTC | |
by rmcgowan (Sexton) on May 11, 2011 at 23:05 UTC |