in reply to Extracting filename from a path string
if ($filepath =~ /([^\/\\]+)$/) { $file = $1; } else { $file = $filepath; } [download]