This isn't quite what I had in mind when I said small example, but I guess it'll do. One thing I see right away is that you're not closing the file after you open it. As previously mentioned, Windows doesn't like to rename open files. Where you have:
close $open;
You should have:
close INFILE;
In reply to Re^3: Mass file renaming
by revdiablo
in thread Mass file renaming
by interstellar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |