Problems? Is your data what you think it is? | |
PerlMonks |
Renaming Every File in a directoryby Anonymous Monk |
on Apr 28, 2015 at 03:38 UTC ( [id://1124950]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have this code to delete every file in a directory and skip directories... but I'm not remembering how to use the sub to rename files...
Where unlink is, what do I put to rename the file, IF it ends in .jpg to a Random string.jpg? Instead of unlink? I have not been writing Perl programming for a few years, and I feel like I'm getting dementia... I am at a total loss on it. Can you point me in the right direction? Please. Rich
Back to
Seekers of Perl Wisdom
|
|