hotshot has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that sometime (not consistent) I get the warning from the close function above, even if the procedure succeeded, anyone for the rescue?open(CMD, "$command 2>&1 |") or warn "Can't open $command for reading: + $!"; my @cmdOutput = <CMD>; close(CMD) or warn "Can't close $command: $!/$?";
Title edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open()
by ferrency (Deacon) on May 06, 2002 at 14:09 UTC | |
|
Re: open()
by hotshot (Prior) on May 06, 2002 at 14:05 UTC | |
by ariels (Curate) on May 06, 2002 at 14:07 UTC |