theunixtips.com
perl : Extract filename from full path
Use substr and rindex to extract the name of file from full pathname. Or use basename provided by File::Basename.