Dearest Monks, my question is probably sillier than I try to be with my perl. when I use IO::Pipe to run processes that aren't actually pipes (as I understand them), I get weird behavior.
use Modern::Perl; use IO::Pipe; my $pipe = IO::Pipe->new; $pipe->reader(qw(echo foo > bar)); while (<$pipe>){ print; }
the above code prints "foo > bar", which I don't understand. I was expecting the $pipe to just close and for nothing to be printed after the process is completed. Can someone help me clean up my thinking on this?
DIn reply to pipe help! by docdurdee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |