Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: regex renaming with existing files

by wjw (Priest)
on Nov 03, 2014 at 22:07 UTC ( #1105952=note: print w/replies, xml ) Need Help??


in reply to regex renaming with existing files

What you are attempting to do is not clear to me. The way you have this written, it is only going to find one folder called "folder1" and rename it as you have specified. To do multiple folders I would think that you would have to have a loop there somewhere.

Perhaps you want all folders below folder1 renamed? What you are asking for does not seem to line up with what you are coding.

I think perhaps what you might find helpful is to list out what exactly you have for folders, then write out what you expect to happen to each one. Then you will have an outline of what you have, what you want to have, and psudo-code to write against.

Then if you have questions, it will be clear what the question is about...

Hope that is helpful...

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-10-17 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (90 votes). Check out past polls.

    Notices?