$ perl -MO=Deparse,-p -wlne " ! /def/ and print qq{$_}; " BEGIN { $^W = 1; } BEGIN { $/ = "\n"; $\ = "\n"; } LINE: while (defined(($_ = ))) { chomp($_); (/def/ or print("$_")); } -e syntax OK