![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Regex Split and Formattingby ww (Archbishop) |
on Apr 04, 2013 at 15:56 UTC ( #1027007=note: print w/replies, xml ) | Need Help?? |
If the first record -- in fact -- is the same as the first record -- as posted -- how do you transform it to the sample output you offer. IOW, how does:
become:
Were you merely careless about posting your request for a way to resolve your problem. Carelessness like that often wastes the time of those good enough to try to help you! And, not just BTW, I'm not persuaded by your claim that this is not homework. I'm not sure it is, either, but the 'no modules' statement -- in the face of advise (to use a CSV approach) from those far wiser about Perl than thee -- is pretty hard to accept as anything other than nonsense. Also note: your comment in Re: Regex Split and Formatting that you "failed miserably" is not a precise statement of a problem... other than failure to persevere in the face of discouragement. The code accompanying that generality might serve to offer you some enlightenment, however, were you to add a few strategic print statements to see what you're really getting into $line and $first.
In Section
Seekers of Perl Wisdom
|
|