my @hitsarray = qw(this is the first hit this is the second hit this is the 
third hit);
my $fieldnumber = "4";
my $searchposition = "2";
I want to know whether @hitsarray contains two sets of $fieldnumber 
elements where the string at $searchposition is identical - in this 
example, that would be "is". I guess the first step to do would be to 
separate @hitsarray in sets of four elements (how? loop sliceing?), code 
these sets as arrays and check whether $array[$searchposition] of one such 
array is identical to that of another. Or is there a more efficient 
approach?

Birgit Kellner


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to