C:\>echo test | perl -ple 42 test C:\>echo test | perl -MO=Deparse -ple 42 BEGIN { $/ = "\n"; $\ = "\n"; } LINE: while (defined($_ = )) { chomp $_; '???'; } continue { print $_; } -e syntax OK