"..The next step is to rename the file ..."
then check rename function
"..and copy it to a new location."
you can use File::Copy
You may also want to check File::Find, to easily transverse a directory tree.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
In Section
Seekers of Perl Wisdom