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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|