in reply to Assigning an array of strings to a hash value in an array of hashes
those extra square brackets will create an array containing the results of split and return a reference to it. now you'll access an element like so:$files[$i]{hashkey}= [ split(/,/,$ARGV[0]) ];
where -> is the dereference operator and 0 is the index of the element in question.print $files[$i]{hashkey}->[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
WOW!!!
by mr. jaggers (Sexton) on Dec 20, 2002 at 01:54 UTC |