Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Can someone please help to clarify what is the difference between below three declarations (please note the brackets):
Example 1:
Example 1:
Example 2:my %h = { ( 1 => "j", 2 => "b", ), ( 1 => "p", 2 => "b", ), };
Example 3:my %h = ( ( 1 => "j", 2 => "b", ), ( 1 => "p", 2 => "b", ), );
Thanks in advance.my %h = { { 1 => "j", 2 => "b", }, { 1 => "p", 2 => "b", }, };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Different Type of Hashes
by Khen1950fx (Canon) on May 07, 2012 at 09:30 UTC | |
by johngg (Canon) on May 07, 2012 at 10:51 UTC | |
Re: Different Type of Hashes
by JavaFan (Canon) on May 07, 2012 at 18:29 UTC |
Back to
Seekers of Perl Wisdom