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!
In reply to Reading a pipe by mpolo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |