in reply to Extracting filename from a path string

This is tried and tested (but not v. elegant) on WinX machines:

if ($filepath =~ /([^\/\\]+)$/) { $file = $1; } else { $file = $filepath; }
where $filepath = 'c:\windows\foo\bar\quux\baz.txt'; Hope that helps,
SMiTZ