Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How can I merge data using a hash?

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?

Replies are listed 'Best First'.
Re^2: How can I merge data using a hash?
by Anonymous Monk on Oct 10, 2004 at 22:07 UTC
    the output would look like
    complex.1 1.356 10.25 complex.2 1.879 12.02

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://398036]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found