good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Stripping a seemingly complicated comma-delimited fileby the_slycer (Chaplain) |
on Jun 11, 2001 at 18:22 UTC ( [id://87501]=note: print w/replies, xml ) | Need Help?? |
The problem that you are running into here is with this line
What you have done there is not what you think. When you assing $file to the <> operator it grabs one line - not every line. Either assign it to an array (@file) which will put each line as an array entry, or even better loop through the file with
In Section
Seekers of Perl Wisdom
|
|