|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Optimize file renaming.by Tomtom (Scribe) |
| on May 26, 2005 at 08:00 UTC ( [id://460629]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I think you could use sprintf like :
"%07d", since your new file names would always 7 characters long. Update : too late :( Update : As blazar said, "%07d" is wrong, I updated it to "%07s", which seems to work better : sorry for the mistake.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||