perl -MO=Deparse -ne 'chomp;$s+=$_ if($_>10240);END{print "$s\n"}' #### LINE: while (defined($_ = )) { chomp $_; $s += $_ if $_ > 10240; sub END { print "$s\n"; } ; } -e syntax OK #### while (<>) { chomp; $s += $_ if $_ > 10240; } print "$s\n";