Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: detecting a pipeline on STDIN

by pfaut (Priest)
on Mar 15, 2003 at 21:18 UTC ( #243351=note: print w/replies, xml ) Need Help??


in reply to detecting a pipeline on STDIN

-p STDIN should tell you if STDIN is a pipe. The filetest operators are described in perlfunc.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re: Re: detecting a pipeline on STDIN
by Pardus (Pilgrim) on Mar 15, 2003 at 21:25 UTC
    Thx -- I looked it up in the reference guide which only talks about testing for _named_ pipes with "-p". Sorry for asking the obvious :S
    --
    Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
    >>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2021-04-23 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?