http://www.perlmonks.org?node_id=642306


in reply to Re^4: How to write a program to read stdin or command line?
in thread How to write a program to read stdin or command line?

perl -ple "next" still prints every line, so, yes, -p is less flexible based on your fine examples.

If you want to omit some lines from the output, you can't do that if you are also using -l

My first reaction to that is that the final -l was supposed to be a -p. That would certainly make sense to me, but I can't say for sure that it is what was intended.

- tye