What am I doing wrong here?I think the pipe is messing everything up.
No, the pipe is fine. Jusr redirect stderr (fileno 2) to stdout (fileno 1):
open(SY, "echo blablabla|/usr/bin/js 2>&1|") or die "$!"; while(<SY>){ print ">>$_"; }
In reply to Re: perl, open and pipe
by shmem
in thread perl, open and pipe
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |