XP is just a number | |
PerlMonks |
Re^5: regex renaming with existing filesby GrandFather (Saint) |
on Nov 04, 2014 at 20:12 UTC ( [id://1106103]=note: print w/replies, xml ) | Need Help?? |
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:
which is much clearer and a lot harder to get wrong.
Perl is the programming world's equivalent of English
In Section
Seekers of Perl Wisdom
|
|