RE: looking for duplicate array values

2005-10-05 Thread Charles K. Clarkson
Jeff 'japhy' Pinyan wrote: : On Oct 5, Charles Farinella said: : : And then you should chomp $_ before going further; otherwise, : the last element of @array is going to have a newline at the end : of it. : : :my @array = split( "\t", $_ ); : : chomp; :

Re: looking for duplicate array values

2005-10-05 Thread Jeff 'japhy' Pinyan
On Oct 5, Charles Farinella said: Thank you for your help, with some help from someone in our office, here is our solution, perhaps it will be helpful to someone else. #!/usr/bin/perl -w use strict; my %hash; my $sku; my $verbose = 0; my $numDuplicates = 0; open( INFILE, 'stock.tab' ); You

Re: looking for duplicate array values

2005-10-05 Thread Charles Farinella
On Wed, 2005-10-05 at 10:43, Jeff 'japhy' Pinyan wrote: > On Oct 5, Charles Farinella said: > > > I have a list of 15,000+ items in a tab separated list. I am putting > > all the values into an array, and I need to look through all $array[0] > > for duplicates and am not sure how to proceed. Hel

Re: looking for duplicate array values

2005-10-05 Thread Jeff 'japhy' Pinyan
On Oct 5, Charles Farinella said: I have a list of 15,000+ items in a tab separated list. I am putting all the values into an array, and I need to look through all $array[0] for duplicates and am not sure how to proceed. Help? Whenever you think of frequency, or duplicates, or unique values,

looking for duplicate array values

2005-10-05 Thread Charles Farinella
I have a list of 15,000+ items in a tab separated list. I am putting all the values into an array, and I need to look through all $array[0] for duplicates and am not sure how to proceed. Help? thanks, --charlie -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [