in reply to Will the range operator help you?
in thread How to remove lines out of an ascii file

This works fine but I don't want to include my matching line into the skip. Is this possible.

Replies are listed 'Best First'.
Re: Re: Will the range operator help you?
by broquaint (Abbot) on Sep 19, 2001 at 19:33 UTC
    Sure if you just do something like this -
    while(<FILE>) { next unless /^CPN/ .. eof() and !/^CPN/; [munge data here] }
    HTH

    broquaint