leegold has asked for the wisdom of the Perl Monks concerning the following question:
students.dat ------------ Bill Jones : 2 : 35 Anne Smith : 3 : 41 $students {$fields[0]}->[$fields[1]]=$fields[2]
So looks like, $student is an anonyous hash reference. $fields[0] is the key (ie. key is student name). Taken in total the left side of the arrow is an anonymous array reference. It's the right side of the arrow I don't understand, what's the "=" doing.....Heck, I don't understand. Could a monk gently break it down for me? Help appreciated.
Lee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help w/hash arrays
by NetWallah (Canon) on May 23, 2004 at 20:02 UTC | |
|
Re: help w/hash arrays
by Zaxo (Archbishop) on May 23, 2004 at 19:52 UTC | |
|
Re: help w/hash arrays
by TGI (Parson) on May 24, 2004 at 00:09 UTC |