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?
In reply to Re^2: Print to a file then use file content for test?
by ikegami
in thread Print to a file then use file content for test?
by lcollins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |