in reply to Launch External Binary
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Launch External Binary
by Illuminatus (Curate) on Oct 09, 2008 at 14:43 UTC | |
by Fletch (Bishop) on Oct 09, 2008 at 15:05 UTC | |
by Illuminatus (Curate) on Oct 09, 2008 at 15:20 UTC |