in reply to Re: Re: Getting the filename from full path name ?
in thread Getting the filename from full path name ?

I believe you mean
my ($file) = $a =~ m|/([^/]+)$|;
Your exp matches starting with the first slash

Chris