in reply to Use of next if...

Here is a sample with next if. (Quick language tutorial for my 1 year old. *Smiles*)

use strict; while(<DATA>) { next if /^Bad/; print; } __DATA__ Good:Good morning Bad:Shut up Good:You're welcome Bad:No!