Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^6: making presence/absence table from a hash of arrays

by jwkrahn (Monsignor)
on Sep 06, 2011 at 22:57 UTC ( #924484=note: print w/ replies, xml ) Need Help??


in reply to Re^5: making presence/absence table from a hash of arrays
in thread making presence/absence table from a hash of arrays

The OP is a biologist, not a SW person.

The OP doesn't say that so I assume that you know them personally?

- something simple -

The OP says they have "an array with 5 elements" but you chose to store that in a string and then split it.    How is that simpler?


Comment on Re^6: making presence/absence table from a hash of arrays
Re^7: making presence/absence table from a hash of arrays
by Marshall (Prior) on Sep 07, 2011 at 03:45 UTC
    The OP doesn't say that so I assume that you know them personally?
    In the level of thread that I directly replied to, the Original Poster says: "I am a PhD genome biologist still getting to grips with the finer details of Perl".

    The OP says they have "an array with 5 elements" but you chose to store that in a string and then split it.
    Well, I certainly did focus on the OP's description of the output:
    one two three four five row_1 = 1 1 0 0 1 row_2 = 0 1 0 1 0 row_3 = 1 0 1 1 1 etc...
    It looked to me like there would be line with the column names - I certainly was thinking about a normal CSV type header. If not so what? We are focusing on the wrong detail.

    I think we are getting bogged down into small details... You posted an excellent solution as did I. Let's leave it at that.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-22 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls