in reply to Array Problem
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array Problem
by wanderinweezard (Initiate) on Jul 08, 2005 at 14:37 UTC | |
by Transient (Hermit) on Jul 08, 2005 at 14:41 UTC | |
by wanderinweezard (Initiate) on Jul 08, 2005 at 15:37 UTC | |
by Transient (Hermit) on Jul 08, 2005 at 15:46 UTC |