in reply to Difference in Hash Declaration
Parenthesis () creates LIST:
To create a hash, we substitute the LIST for %h:( 1 => 'j', 2 => 'b' )
Incidentally, LIST is different from ARRAY. To create an array, we substitute LIST for @a:my %h = ( 1 => 'j', 2 => 'b' );
my @a = ( 1 => 'j', 2 => 'b' );
In Section
Seekers of Perl Wisdom