![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: How do I seek to a certain position in a file?by simonflk (Pilgrim) |
on Nov 13, 2002 at 15:57 UTC ( #212613=note: print w/replies, xml ) | Need Help?? |
GhodMode said:
Not quite. That prints line 11. I would do something like this:
For the original question "do something" would probably be a seek backwards to the desired char, or perhaps more sensibly, stop the line before and seek forwards. for more info on $. and friends, see perldoc perlvar -- simonflk
In Section
Seekers of Perl Wisdom
|
|