Your scopes are fine. But this:
open ($TEMPfa,"<", 'temp');should be this:
open ($TEMPfa,">", 'temp');That is, you are opening a file for reading, not writing.
In reply to Re: Overwriting temp file
by Anonymous Monk
in thread Overwriting temp file
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |