RE: extraction of filenames in a string

2002-03-26 Thread David Gray
> > I have a string for example: > > > > "directory/subdirectory/subsubdirectory/filename.gz" > > > > How do I extract the filename.gz part for testing, > > the number of subdirectories is not fixed? > > use File::Basename; > > my $file = "directory/subdirectory/filename.gz"; > print basename($

Re: extraction of filenames in a string

2002-03-26 Thread Jonathan E. Paton
> I have a string for example: > > "directory/subdirectory/subsubdirectory/filename.gz" > > How do I extract the filename.gz part for testing, > the number of subdirectories is not fixed? use File::Basename; my $file = "directory/subdirectory/filename.gz"; print basename($file); Jonathan Paton

extraction of filenames in a string

2002-03-26 Thread stephen . redding
Hi i have a string for example "directory/subdirectory/subsubdirectory/filename.gz" how do i extract the filename.gz part for testing, the number of subdirectories is not fixed? Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] British