Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: transforming XY data to X and Multiple Y column data?

by LanX (Sage)
on Sep 27, 2010 at 09:31 UTC ( #862168=note: print w/replies, xml ) Need Help??

in reply to transforming XY data to X and Multiple Y column data?


For me it looks like that you simply need an "array of hashes" as datastructure, with the IDs as keys.

The order of these keys should be preserved in an extra array (the "headline").

output would be simply:

# print headline-keys # loop over indices # print $index,"\t"; # loop over ids in headline # print $data[$index]{$id},"\t"; # print newline

Hope this gives you the basic idea how to do it by yourself.

If data entries are to long for tab-delimiters you should have a look at format

Cheers Rolf

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-01-17 17:29 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (51 votes). Check out past polls.