|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re2: Best way to read line x from a fileby Hofmator (Curate) |
| on Mar 30, 2004 at 07:17 UTC ( [id://340933]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
A couple of small things went wrong in your 2nd example.
The correct version should be something like this: ... but I wouldn't recommend it. And for the sake of completeness, here the solution spelled out with Tie::File which lots of people mentioned already.
-- Hofmator
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||