in reply to Re: Perl hashes revisit
in thread Perl hashes revisit

i was unable to get any data doing it in that way... And Ive tried to read the documentation as well to better understand this.. but im still having problems. And its getting the better of me!

Replies are listed 'Best First'.
Re^3: Perl hashes revisit
by bart (Canon) on Feb 15, 2009 at 08:26 UTC
    Is your variable $test or %test? The code is for $test (a scalar variable, containing a hashref). If it is %test (a hash variable), change the code to
    print $test{dest}->{flags}
    or
    print $test{dest}{flags}