in reply to Re^3: Syntax for Hashes of Hashes
in thread Syntax for Hashes of Hashes

However be careful with exists(), it creates stuff for you:

use Data::Dumper; use strict; use warnings; my $h = {}; if (exists($h->{"a"}{"b"})) { } if (exists($h->{"a"})) { print "exists\n"; } print Dumper($h);

This will make $h->{"a"} exists.

Replies are listed 'Best First'.
Re^5: Syntax for Hashes of Hashes
by planetscape (Chancellor) on Jul 25, 2005 at 05:29 UTC