Do you know where your variables are? | |
PerlMonks |
Re^3: Parse a file into a hashby aaron_baugher (Curate) |
on Apr 05, 2012 at 22:19 UTC ( [id://963755]=note: print w/replies, xml ) | Need Help?? |
You should probably show us some sample data, so we can tell what "can't detect a key" means. But in general, you're talking about creating a hash of arrays. So for every key/value pair, you'll want to do something like this:
That pushes the value onto the array referenced by the key within the hash. Later, you'll be able to go through them with:
Aaron B.
In Section
Seekers of Perl Wisdom
|
|