in reply to remove directory path

Hi try this,

#!/usr/local/bin/perl use File::Basename; print $file_name = basename('/opt/local/bin/zap.exe');