Re: Comparing two arrays

2012-06-06 Thread Brock
On 2012.06.06.04.06, Uri Guttman wrote: > On 06/06/2012 03:58 AM, Wernher Eksteen wrote: > >I have two arrays that I need to compare, and then print the differences: > > this is answered in the perl FAQ. please check that before you ask > ... Specifically, you can use "perldoc -q" to search throu

Re: Comparing two arrays

2012-06-06 Thread Uri Guttman
On 06/06/2012 03:58 AM, Wernher Eksteen wrote: Hi, I have two arrays that I need to compare, and then print the differences: this is answered in the perl FAQ. please check that before you ask what could be a frequently asked question. in fact, i teach perl newbies to read/skim the entire FAQ

Re: Comparing two arrays

2012-06-06 Thread pangj
Try Array::Diff http://search.cpan.org/~typester/Array-Diff-0.07/lib/Array/Diff.pm Hi, I have two arrays that I need to compare, and then print the differences: @array1 contains this: /dev/sdmt1 /c4devpr64 /dev/sdmq1 /c4devpr66 /dev/sdmp1 /c4devpr67 /dev/sdml1 /c4devpr69 @array2 contains t

Re: Comparing two arrays in longest element order

2001-09-24 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > "brian" == brian d foy <[EMAIL PROTECTED]> writes: > brian> In article <[EMAIL PROTECTED]>, > brian> [EMAIL PROTECTED] (Darin Weeks) wrote: > brian> you can use a schwartzian transform to pre-compute the len

Re: Comparing two arrays in longest element order

2001-09-24 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Darin Weeks) wrote: > I am trying to compare two arrays for a macro building system. I need to > start with the longest longest element from array 1 (the macros) and then > compare it to all elements in array 2. > Is there a simple way to cycl

RE: Comparing two arrays in longest element order

2001-09-24 Thread Bob Showalter
> -Original Message- > From: Darin Weeks [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 24, 2001 4:31 PM > To: [EMAIL PROTECTED] > Subject: Comparing two arrays in longest element order > > > > Hi all, > > I am trying to compare two arrays for a macro building > system. I need