in reply to Hash element access -dereferenced hashes
the above codes work just fine.. dunno whats wrongs with the exp .. i'll post the code .. c if u can figure out the problem
i have two defined hashes cell and map,
i try printing it using the command
i have two defined hashes cell and map,
$a = "Lucy"; my %cell=> = ( Lucy => '12' ); my %map=> = ( 12 => '45' );
i try printing it using the command
but it throws the exception-- use warnings: - use of uninitialized value within %cell in string at line...print "$cell{$map{$a}}\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Hash element access -dereferenced hashes
by choroba (Cardinal) on Dec 06, 2012 at 10:53 UTC |
In Section
Seekers of Perl Wisdom