while(<DATA>) { chomp; next if /^(?:qcp|#)/ .. /^#cardtype/ or 0 == length; # do stuff here }
_________
broquaint
update: added check for blank lines
In reply to Re: Processing lines after a pattern in a while loop
by broquaint
in thread Processing lines after a pattern in a while loop
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |