Re: cutting a string

2003-09-05 Thread John
> 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

Re: cutting a string

2003-09-05 Thread denis
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: > > > > > >

Re: cutting a string

2003-09-05 Thread denis
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

Re: cutting a string

2003-09-04 Thread Freddy Söderlund
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

Re: cutting a string

2003-09-04 Thread sc00170
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

Re: cutting a string

2003-09-03 Thread David Wall
--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

RE: cutting a string

2003-09-03 Thread Charles K. Clarkson
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[$#

Re: cutting a string

2003-09-03 Thread denis
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

Re: cutting a string

2003-09-03 Thread denis
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

RE: cutting a string

2003-09-01 Thread Danny Miller
: 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

Re: cutting a string

2003-09-01 Thread Rob Anderson
<[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

cutting a string

2003-09-01 Thread sc00170
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