in reply to Re: R.Exp. Matching from the Right
in thread R.Exp. Matching from the Right

You can use different delimiters for your match, which removes the need to escape your slashes. This may or may not make that line less confusing. :)
$file =~ m|/([^/]+)$|;