mpolo has asked for the wisdom of the Perl Monks concerning the following question:
and save it as test.pl and then try cat test.pl|perl test.pl, I get no output.use IO; $pipe=new IO::Pipe; $pipe->reader(); while (<$pipe>){ print "> $_\n"; }
(Ultimately, I want to set a procmail rule to send certain messages through a perlscript, and procmail wants to send these as a pipe...)
Of course I could be going about this completely wrong. It wouldn't be the first time.
Thanks for any help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a pipe
by Anonymous Monk on Apr 02, 2001 at 21:54 UTC | |
by ok (Beadle) on Apr 02, 2001 at 22:35 UTC | |
by chipmunk (Parson) on Apr 03, 2001 at 08:20 UTC | |
by Anonymous Monk on Apr 02, 2001 at 22:53 UTC | |
by ok (Beadle) on Apr 02, 2001 at 23:04 UTC | |
by Anonymous Monk on Apr 02, 2001 at 23:51 UTC | |
|