|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Smart way to read a file vertically?by johngg (Abbot) |
| on Jun 06, 2012 at 10:13 UTC ( #974682=note: print w/ replies, xml ) | Need Help?? |
|
Similar to other solutions but using push with a ternary and maps.
The output.
I hope this is of interest. Update: As pointed out by Not_a_Number, the code would have failed for some names. I had forgotten to put tabs back into the data after the copy'n'paste put in the displayed spaces :-( Code now corrected. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||