Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: rename file name in directory and subdir

by choroba (Abbot)
on Aug 06, 2013 at 20:30 UTC ( #1048179=note: print w/ replies, xml ) Need Help??


in reply to Re: rename file name in directory and subdir
in thread rename file name in directory and subdir

Beware, \' is special in single quotes.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^2: rename file name in directory and subdir
Download Code
Re^3: rename file name in directory and subdir
by mtmcc (Hermit) on Aug 06, 2013 at 20:40 UTC
    Thank you choroba, well spotted. Reason #121 not to use windows!! That would make it 'C:\folder1\folder2\\'. Is that right?

    EDIT:People who use perl on windows must be that bit sharper, having to account for file separators also escaping special characters in perl code.

      I have been caught forgetting to double my backslashes in a Windows environment more times that I would wish to publicly recall.
        Thanks - it's nice to know I'm not alone!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-09-19 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (135 votes), past polls