Syntactic Confectionery Delight | |
PerlMonks |
Re: Renaming file without forward slashby hipowls (Curate) |
on Feb 25, 2008 at 08:45 UTC ( [id://669962]=note: print w/replies, xml ) | Need Help?? |
You have to double up the '\'s as they are escape characters even in single quote strings. So write 'C:\\duty\\tasks\\checks'. Also have a look at using File::Spec and File::Basename (to pinch dirving's good suggestion;)
In Section
Seekers of Perl Wisdom
|
|