in reply to Difference in Hash Declaration
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' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Difference in Hash Declaration
by jwkrahn (Abbot) on May 07, 2012 at 11:02 UTC | |
by anazawa (Scribe) on May 07, 2012 at 12:25 UTC |