Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by tye (Sage)
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        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642306]
help
Chatterbox?
[stevieb]: Damn... just wasted two hours wondering why num 23 wasn't setting bit 5 in a register. I was working on the decimal, but the register holds BCD numbers. Sigh.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-05-22 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?