echo -e "abc\ndef\nghi\n" | perl -wlne '! /def/ and print "$_";' #### qwurx [shmem] ~> perl -MO=Deparse,-x -wlne '! /def/ and print "$_";' BEGIN { $^W = 1; } # this is -w BEGIN { $/ = "\n"; $\ = "\n"; } # this is -l LINE: while (defined($_ = )) { # and here is what -n does... chomp $_; # this belongs to -l print "$_" unless /def/; } # this belongs to -n too -e syntax OK #### perl -ne '}{ print $.' #### perl -MO=Deparse,-x -ne '}{print$.' LINE: while (defined($_ = )) { # -n (); # script body - a noop } # script body { # script body print $.; # script body } # -n