C:\test>perl -ple"$_ & 1 or undef $_" junk.txt 1 3 5