You can use File::Basename to get just the file name but beware that if the perl script runs on a Unix or Linux box you will need to translate the directory path delimiters that windows sends '\' to forward slashes '/' first so File::Basename will parse the filename out properly.





Bookmarks