Does printing the value of $! give you any clues?
rename("uaspf.txt", "uaspf.txt.bak") or die"Unable to replace:$!\n";
Alos, take a look at rename because there are portability issues with this function.
In reply to Re^3: Swapping Files
by toolic
in thread Swapping Files
by deadpickle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |