open my $handle, '-|', $application, @args or confess "can't launch '$application': $!"; while (<$handle>){ # do something here } close $handle or warn "Errors while closing pipe to '$application': $! +";
The warn message after the close might give you some hints what's wrong.
In reply to Re: Launch External Binary
by moritz
in thread Launch External Binary
by libvenus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |