Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: regex renaming with existing files

by GrandFather (Saint)
on Nov 04, 2014 at 20:12 UTC ( [id://1106103]=note: print w/replies, xml ) Need Help??


in reply to Re^4: regex renaming with existing files
in thread regex renaming with existing files

Show us the actual code you tried and tell us what issue you saw. $counter = 1 & ++$counter is rather unlikely code and probably doesn't do anything like what you expect, although it's hard to tell what you expect.

Don't use the C style for loop. Instead use:

for my $counter (1 .. 9) { ... }

which is much clearer and a lot harder to get wrong.

Perl is the programming world's equivalent of English

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found