You open a file for reading and then you truncate that file before reading from it. Try moving the write after reading (and closing) the first filehandle - or try writing to a different file.open(RESULTS2, "ping.txt") || die; open(RESULTS, ">ping.txt") || die;
In reply to Re: Array Problem
by Transient
in thread Array Problem
by wanderinweezard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |