$file_path =~ /(.*)\/([^/]*)/; my ($dir, $file) = ($1, $2); [download]
It should satisfy all reasonable paranoia.
In reply to Re: dir / file split by girarde in thread dir / file split by camelcom