$file = "/opt/local/bin/zap.exe"; $file =~ s/.*\///g; print $file;