1) I have an simple Perl script that I use to post daily news. The script allows me to upload 2 pictures per each news posting I do. What I want to do is to have this script rename these pictures to match the record number for easy tracking. In other word, if the record number (which the script generate by itself) is 1, the uploaded pictures will then be renamed as [url removed, login to view] and 1b.jpg.
I have another script from the same programer as the script above that have this function. However, I just don't know much about Perl to be able to copy that subroutine to the newsscript that I want to use.
2)I also want to have a subroutine in this script that after a record is certain days old, it will be deleted along with the corresding uploaded pictures.