http://qs321.pair.com?node_id=243351


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.... <<<<