in reply to Re: How do I extract a file name from a path string
in thread How do I extract a file name from a path string

my $filepath = '/u/test/global/filename.txt'; my $fname = substr($filepath, rindex($filepath, '/') + 1);