try this..
$file = "/opt/local/bin/zap.exe"; $file = (split(/\//, $file))[-1]; print $file; [download]
In reply to Re^2: remove directory path by sen in thread remove directory path by Anonymous Monk