Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Parsing a fileby allolex (Curate) |
on Jan 22, 2004 at 18:07 UTC ( [id://323264]=note: print w/replies, xml ) | Need Help?? |
You're not quite there with filehandles, yet. First you are telling Perl to get each line (actually record) in a file, one at a time, using while. Then you're making a reference to that same filehandle again while the line you want is already in the special variable $_. Try this (untested) code:
--
In Section
Seekers of Perl Wisdom
|
|