in reply to Re: How do I extract a file name from a path stringin 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); [download]