RE: Help with hash refs

2004-07-27 Thread Brian Ling
Brian Ling; [EMAIL PROTECTED] Subject: RE: Help with hash refs Brian Ling wrote: > my $test1 = ${refer}->{value}->{fred}; > print Dumper($refer); > # this doesn't change the data as i'd expect > > my $test2 = ${refer}->{value}->{fred}->{value}; > print

RE: Help with hash refs

2004-07-27 Thread Charles K. Clarkson
Brian Ling wrote: > my $test1 = ${refer}->{value}->{fred}; > print Dumper($refer); > # this doesn't change the data as i'd expect > > my $test2 = ${refer}->{value}->{fred}->{value}; > print Dumper($refer); > # this actually creates a key 'fred' pointing > # to a empty hash ref #I > > So my quest

Help with hash refs

2004-07-27 Thread Brian Ling
Hi all, I seem to have completely confused myself with a data structure, as testing for a keys existence seems to create an anonymous hash ref. The following is a very cut down version of my code, to try and explore what's going on. #!/usr/bin/perl use warnings; use strict; use Data::Dumper; my