I really really don't undertand perl hash. I have been reading perl doc but not able to completely get perl reference.
For a prime example, can you please tell me the difference between below?
@{$table}{$item} @{$table{$item}} %{$table}{$item} %{$table{$item}}
Or is there some general rule that I am missing from not able to decipher these?
Please point me to right direction. I have been reading perldoc.perl.org..
Just replace the reference-producing block ({ ... }) with an identifier to get a better sense of what you have.
{ ... }
@{$table}{$item}
@name{$item}
$table
$table->@{$item}
${$table}{$item}
$table->{$item}
@{$table{$item}}
@name
$table{$item}
$table{$item}->@*
%{$table}{$item}
%name{$item}
$table->%{$item}
%{$table{$item}}
%name
$table{$item}->%*
See
1.4m articles
1.4m replys
5 comments
57.0k users