There's more than one way to do things | |
PerlMonks |
help with splitting and printing the arrayby perlnewbie012215 (Novice) |
on Jan 24, 2015 at 19:36 UTC ( [id://1114382]=perlquestion: print w/replies, xml ) | Need Help?? |
perlnewbie012215 has asked for the wisdom of the Perl Monks concerning the following question: Hi All Monks, I am pretty new to perl and I wrote a small perl script to ease my pain, did not work. My input looks like this with over 20 line in the text file.
and my output should look like this:
My script look like this, it worked only when the count is right as you can see the second line the count went way off, the fields count in my code is not accurate but you get the point. I need a different logic, can you guys help me out.. Thank you all
Back to
Seekers of Perl Wisdom
|
|