Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2016-10-25 09:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.