I'm aware of PERL's seek function, but it only accepts the byte-position, correct? Is there any way to go to a particular line number in a file? That is, without making a custom function which reads each newline character, and keeps track of the line number, etc.
For instance, say I wanted to go to line 50,045.. i don't see any way it would could be built into perl, but it'd be nice if it was, any help would be greatly appreciated.
-Ryen
For instance, say I wanted to go to line 50,045.. i don't see any way it would could be built into perl, but it'd be nice if it was, any help would be greatly appreciated.
-Ryen