|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Please help...by giridharreddy9 (Initiate) |
| on Mar 10, 2011 at 21:23 UTC ( #892536=perlquestion: print w/ replies, xml ) | Need Help?? |
|
giridharreddy9 has asked for the
wisdom of the Perl Monks concerning the following question:
I have a file in this format:
Cluster1 unit1 Cluster1 unit2 Cluster1 unit3 Cluster1 unit4 Cluster1 unit5 Cluster2 unit6 Cluster2 unit7 Cluster2 unit8 Cluster2 unit9 Cluster2 unit10 And I need to generate the output as: Cluster1 unit1 unit2 unit3 unit4 unit5 Cluster2 unit6 unit7 unit8 unit9 unit10 I am new to perl and am not able to figure out how to do this...plz advice.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||