'C:\\temp'
you do not need to escape backslashes in strings enclosed in single-quotes; I may be wrong, though, I'm windows free since 2.5 years now.
On another note: If the program exits with such a clear error-message, believe what it says and try to debug it the old way: just print out where you are and what the variable-values are.
You'll see that your understanding of what programming is and what programs you've written actualy do, increases a lot if you take a closer look yourself.
As a second note:
The programm seems to be overly complicated for such a simple task, maybe you should google around a bit on this subject; learning by doing is a Good Thing(TM), but The-Right-Tool-For-The-Right-Job(tm) too ;-)
Now to the solution: Change line ~43
} elsif (rename "$newdir/$get_files", "$newdir/$newfile") {
hth,
regards,
tomte
In reply to Re: Renaming Files
by Tomte
in thread Renaming Files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |