Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-22 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (202 votes), past polls