open my $CMD, '-|', 'ls 2>&1' or die $!; while (<$CMD>) { print if /\.xml/; } close $CMD or die $! ? 'Pipe failed' : 'Program error: ' . ($? >> 8) ;
In reply to Re: Easy way to capture STDOUT and STDERR without IPC
by eff_i_g
in thread Easy way to capture STDOUT and STDERR without IPC
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |