in reply to Re^2: "close" failing in thread "close" failing
Another strange thing i found is that if i add ">", in front of abc.sh, it works for me. Can you tell what will ">" do to my script?
open (SNMP1, ">abc.sh |") or die "Cannot run abc.sh $!";
while (<SNMP1>) {
# do some processing
}
close (SNMP1) or die "ERROR: testing $! $?\n ";
Re^4: "close" failing
by gellyfish (Monsignor) on May 31, 2006 at 14:26 UTC
|
Please use the <code> tags!
You will find you have create a file called abc.sh| in your current working directory. If you had warnings on you would also be warned about trying to read from a file handle opened for writing.
/J\
| [reply] [Watch: Dir/Any] [d/l] [select] |
|