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
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
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