in reply to Use of next if...
use strict; while(<DATA>) { next if /^Bad/; print; } __DATA__ Good:Good morning Bad:Shut up Good:You're welcome Bad:No! [download]