Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: rename file name in directory and subdir

by choroba (Chancellor)
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.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048179]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-06-25 10:06 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (565 votes). Check out past polls.