Re: Extracting equal entities from two different sized arrays?

2003-09-08 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, John W. Krahn wrote: > Kevin Pfeiffer wrote: >> >> In article <[EMAIL PROTECTED]>, John W. Krahn wrote: >> >> > my $string1 = 'C:\Program files\directory1\directory2\directory3'; >> > my $string2 = 'C:\Program files\directory1\dir2\dir3'; >> > >> > ( my $nulls = $

Re: Extracting equal entities from two different sized arrays?

2003-09-07 Thread John W. Krahn
Kevin Pfeiffer wrote: > > In article <[EMAIL PROTECTED]>, John W. Krahn wrote: > > > my $string1 = 'C:\Program files\directory1\directory2\directory3'; > > my $string2 = 'C:\Program files\directory1\dir2\dir3'; > > > > ( my $nulls = $string1 ^ $string2 ) =~ s/^(\0+).*/$1/s; > > > > ( my $string3

Re: Extracting equal entities from two different sized arrays?

2003-09-07 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, John W. Krahn wrote: > Freddy söderlund wrote: >> >> Let me re-phrase my question a bit: >> >> I want to compare the two strings and I want to extract those chars that >> are matching each other in the first and second string (in order from the >> beginning), and

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread John W. Krahn
Freddy söderlund wrote: > > Let me re-phrase my question a bit: > > I want to compare the two strings and I want to extract those chars that are > matching each other in the first and second string (in order from the > beginning), and put them in a new string (not array as I mistakenly said > ear

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread Freddy Söderlund
- Original Message - From: "Rob Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 4:50 PM Subject: Re: Extracting equal entities from two different sized arrays? > > ""Freddy söderlund"" <[EMAIL P

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread James Edward Gray II
On Thursday, September 4, 2003, at 09:28 AM, Freddy Söderlund wrote: Another example on just how *stuck* I was! You're right ofcourse and I were wrong when typing my example. It's really two strings: $string1 and $string2. Let me re-phrase my question a bit: I want to compare the two strings a

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread Rob Anderson
""Freddy söderlund"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > - Original Message - > From: "Rob Anderson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 04, 2003 3:30 PM >

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread Freddy Söderlund
- Original Message - From: "Rob Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 3:30 PM Subject: Re: Extracting equal entities from two different sized arrays? > > >""Freddy söderlund"" &

Re: Extracting equal entities from two different sized arrays?

2003-09-04 Thread Rob Anderson
>""Freddy söderlund"" <[EMAIL PROTECTED]> wrote in > message news:[EMAIL PROTECTED] >Hi! > Hi >I have stuck my thoughts on this one, maybee someone can help me out? > >I have two arrays > >@array1 = "C:\Program files\directory1\directory2\directory3"; >@array2 = "C:\Program files\directory1\dir2

Extracting equal entities from two different sized arrays?

2003-09-04 Thread Freddy Söderlund
Hi! I have stuck my thoughts on this one, maybee someone can help me out? I have two arrays @array1 = "C:\Program files\directory1\directory2\directory3"; @array2 = "C:\Program files\directory1\dir2\dir3"; What I want to do is, compare the arrays, one char at a time, from the beginning and sto