in reply to Reading a file and working only on certain lines
A bit more info would be helpful. Read How do I Post a Question Effectively
or
Your problem statement breaks down as follows from my perspective:
If the file is not too large, you might consider reading it into and array(ex. my @lines)
Hope that is helpful...use strict; use warnings; etc...
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact
|
|---|