in reply to regex renaming with existing files

You have been banging on essentially the same issue for at least two months now (see Rename filenames in perl using regex). Maybe it's time for you to step back and gain some fundamental skills? The most important immediate skill you could hone is using resources such as perldoc to figure out how Perl works. Of immediate interest are perlretut, perlre and perlreref.

Spending a little time and effort now to learn about the tools Perl offers and to learn how to efficiently find the information you need solve problems will save you much more time and effort in the long run than using PerlMonks as a crutch every time you hit a minor issue.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^2: regex renaming with existing files
by boftx (Deacon) on Nov 03, 2014 at 22:38 UTC

    I wish I could up-vote GrandFather's comment twice again!

    You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
      im just glad no one hazarded to responded with a perl script. shocking!
        oops, but honestly, if it werent for the examples that had been given already, i wouldnt know most of the stuff i know. the perldocs can be very confusing for someone who doesnt have programming experience. :L