in reply to Re: Will the range operator help you?in thread How to remove lines out of an ascii file
while(<FILE>) { next unless /^CPN/ .. eof() and !/^CPN/; [munge data here] } [download]
broquaint