sabertooth has asked for the wisdom of the Perl Monks concerning the following question:

Hi I wanted to know if there is a way in perl to move up and down within a file in perl.

I wanted to parse the file and increment on every matched pattern, also in some cases would move the file pointer up.

Is there a way to do that, just to move the file pointer up and down the file?

  • Comment on How do I move two lines up in a file using perl

Replies are listed 'Best First'.
Re: How do I move two lines up in a file using perl
by Anonymous Monk on Mar 17, 2010 at 07:47 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
    A reply falls below the community's threshold of quality. You may see it by logging in.