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

Re: Warn if STDIN pipe is missing or unwanted

by talexb (Chancellor)
on Jan 13, 2026 at 14:44 UTC ( [id://11167152]=note: print w/replies, xml ) Need Help??


in reply to Warn if STDIN pipe is missing or unwanted

To reiterate: the UNIX philosophy for a program that handles input is to get that a) from the input filename that is specified as part of the command line, or, if there is no filename specified on the command line, b) from the input stream. The most obvious example I can think of (and there are many others) is the utility less. You can specify a filename (or a file mask), and less will open and display each of those files. If no filename is supplied, it waits for an input stream (like the command ls -lrt | less) and displays that, a page at a time.

Alex / talexb / Toronto

As of June 2025, Groklaw is back! This site was a really valuable resource in the now ancient fight between SCO and Linux. As it turned out, SCO was all hat and no cattle.Thanks to PJ for all her work, we owe her so much. RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2026-05-11 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.