File::Basename may be of use to you.
In reply to Re: Downloading a range of sequential files by Nkuvu in thread Downloading a range of sequential files by Ionizor