Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: How to write a program to read stdin or command line? (-p next)

by tye (Cardinal)
on Oct 03, 2007 at 05:47 UTC ( #642306=note: print w/ replies, xml ) Need Help??


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        


Comment on Re^5: How to write a program to read stdin or command line? (-p next)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642306]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-11-27 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (177 votes), past polls