in reply to Re: Print to a file then use file content for test?
in thread Print to a file then use file content for test?
In addtion to the problems osunderdog pointed out,
1) It's better to use while (<MISS>) (which reads the file one line at time) than foreach (<MISS>) (which loads the entire file into memory for no reason).
2) You don't need my $miss=<MISS>; in the first script either. Why are you reading from a file you opened for write-append?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print to a file then use file content for test?
by lcollins (Novice) on Jan 05, 2005 at 12:57 UTC | |
by ikegami (Patriarch) on Jan 05, 2005 at 15:23 UTC | |
by lcollins (Novice) on Jan 05, 2005 at 18:27 UTC | |
by lcollins (Novice) on Jan 06, 2005 at 14:13 UTC |