for ($input) { print unless /badinput/; }