more useful options | |
PerlMonks |
Re: How can I merge data using a hash?by Zed_Lopez (Chaplain) |
on Oct 10, 2004 at 22:01 UTC ( [id://398036]=note: print w/replies, xml ) | Need Help?? |
I don't know what to recommend, because I don't know what you mean by merge. If you want to have access to both values, you could use arrayrefs as the values of your hash, and push each value on. Or you could use two different hashes, which might be more sensible depending on what you actually wanted to do with them. What would be the output you'd desire from processing the two files in your example?
In Section
Seekers of Perl Wisdom
|
|