> 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
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:
> > >
> > >
t; > 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";
&g
you "file.txt" as output.
Hope you will find it usefull.
/Freddy
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 5:20 AM
Subject: Re: cutting a string
basename is more convenient i think. What do you say?
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:/p
--On Wednesday, September 03, 2003 9:20 PM -0600 [EMAIL PROTECTED] wrote:
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 fin
denis <[EMAIL PROTECTED]> offered this solution:
: why not try this?
:
: #!/usr/bin/perl
: my @test='';
: my $string = "C:/test/me";
: @test = split('/',$string);
: print "@test\n";
: print "$test[$#test]\n";
The last item of an array can be retrieved
using an index of -1.
print "$test[$#
On Wed, 3 Sep 2003 [EMAIL PROTECTED] wrote:
> 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
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
: cutting a string
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 trie
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 (/) o
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 spli
12 matches
Mail list logo