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

Sure if you just do something like this -
while(<FILE>) { next unless /^CPN/ .. eof() and !/^CPN/; [munge data here] }
HTH

broquaint