in reply to Re^2: Learning about hashes
in thread Learning about hashes
That code declares a hash variable (using my) and assigns a single scalar value to the hash. In the words of diagnosticsmy %eslist = $record[3];
What is in $record[3]? What other data do you want to associate with $record[3]? If you show us a small sample of data, we could probably suggest how you might store the data in a hash.(W) You specified an odd number of elements to initialize a hash, which is odd, because hashes come in key/value pairs.
Give perldata a quick read.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Learning about hashes
by molson (Acolyte) on Oct 16, 2009 at 16:16 UTC |