On Wed, 07 Jun 2006 09:00:12 -0400, Tom Phoenix wrote:
> In Perl, merely referencing a key
> in a hash doesn't change the hash. Some non-Perl hash implementations
> do change the hash in those circumstances, though, so your confusion
> is understandable.

Not to detract from your point in this thread, but just for the sake of
completeness, to mention a counterexample corner case:

my %hash;
foo($hash{bar}{baz});
print "Oops" if exists $hash{bar};
sub foo { }

(Any beginners who are way confused by this... you're better off
forgetting about it until you get heavily into references and lists of
lists.)

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to