Depending on what /usr/bin/js does, that might be a bad idea. 2>&1 mixes STDERR and STDOUT into a single stream, so you may have a hard time "unmixing" them. If you need both STDOUT and STDERR, don't use open "...2>&1 |", but create two pipes manually or using IPC::Open3. If you need only STDOUT, use open "... 2> /dev/null |", if you need only STDERR, use open "... 2>&1 > /dev/null |".
Alexander
In reply to Re^2: perl, open and pipe
by afoken
in thread perl, open and pipe
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |