> > 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($
> 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
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