![]() |
|
more useful options | |
PerlMonks |
Re: Optimize file renaming.by Tomtom (Scribe) |
on May 26, 2005 at 12:00 UTC ( [id://460629]=note: print w/replies, xml ) | Need Help?? |
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
|
|