in reply to Re^2: How to write a program to read stdin or command line?
in thread How to write a program to read stdin or command line?
if that's what the OP means by "stdin or command line",
Seems it was.
you could also use -p instead of -n:
You could, but I wouldn't as it is less flexible than -n.
If you want to omit some lines from the output, you can't do that if you are also using -l
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to write a program to read stdin or command line?
by ikegami (Patriarch) on Oct 03, 2007 at 05:40 UTC | |
by BrowserUk (Patriarch) on Oct 03, 2007 at 11:00 UTC | |
by ikegami (Patriarch) on Oct 03, 2007 at 13:36 UTC | |
by tye (Sage) on Oct 03, 2007 at 05:47 UTC |
In Section
Seekers of Perl Wisdom