"be consistent" | |
PerlMonks |
Re: dereference syntaxby OM_Zen (Scribe) |
on Feb 26, 2003 at 19:55 UTC ( [id://238893]=note: print w/replies, xml ) | Need Help?? |
Hi ,
$x->{a} is not the same as $x{a} ( $x->{a} will be a lookup of the key of a hashrefernce (the declaration in the above my $ones = {} kind of decalaration available ), $x{a} will be a lookup of the key of %x) $x{a}->{$b} is the same as $x{a}{$b} Please read the perldoc perldsc for all kinds of data structure decalaration definition and access
In Section
Seekers of Perl Wisdom
|
|