Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 monks are getting baked in the sun...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2017-08-19 13:42 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (311 votes). Check out past polls.