in reply to Processing lines after a pattern in a while loop
while(<DATA>) { chomp; next if /^(?:qcp|#)/ .. /^#cardtype/ or 0 == length; # do stuff here } [download]
_________broquaint
update: added check for blank lines