Then we have to install it. However, in activestate's distribution there is
the specific modul preinstalled.


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 7:33 PM
Subject: Re: cutting a string


> Sorry, lack of sleep.. but isn't File::Basename usally installed in the
> standard Perl install?
>
> Denis
>
> On Fri, 5 Sep 2003 [EMAIL PROTECTED] wrote:
>
> > On Thu, 4 Sep 2003 [EMAIL PROTECTED] wrote:
> >
> > > basename is more convenient i think. What do you say?
> > >
> > Only if you can load the module on the system. running into issues here
at
> > work where I can load modules (security llama's)
> >
> > Denis
> >
> > >
> > > Quoting [EMAIL PROTECTED]:
> > >
> > > > On Mon, 1 Sep 2003 [EMAIL PROTECTED] wrote:
> > > >
> > > > > What is the function of cutting a string from a point until the
last
> > > > character?
> > > > >
> > > > > For example
> > > > > $string="C:/progra~1/directory1/directory2/file.txt";
> > > > >
> > > > > i want to find the last backslash (/) of the string and keep the
sequence
> > > > > following it (file.txt)
> > > > >
> > > > > Is it simple?
> > > > >
> > > > > I tried with the split function but it returns a list.
> > > > >
> > > > > I just want a scalar!
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > why not try this?
> > > >
> > > > #!/usr/bin/perl
> > > > my @test='';
> > > > my $test1='';
> > > > my $string = "C:/test/me";
> > > > @test = split('/',$string);
> > > > print "@test\n";
> > > > print "$test[$#test]\n";
> > > >
> > > > HTH.. Denis
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to