in reply to open handle
In addition to the two-way pipe proble, I think your die is in the wrong place too. You want to die if the open failed, so it should be outside the parentheses.
instead ofopen(HANDLE, "|cmd ss get $/Tate_SP2/$dir/$fname -Ybarbarat,12345|" ) +|| die "Couldn't run pro +cess:$!";
open(HANDLE, "|cmd ss get $/Tate_SP2/$dir/$fname -Ybarbarat,12345|" || + die "Couldn't run pro +cess:$!" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open handle
by gitarwmn (Beadle) on Dec 06, 2006 at 22:39 UTC |