in reply to Compare two index lists
use strict; use warnings; my @list_a = ( 'a'..'g'); my @list_b = ( 'A'..'C', 'a'..'c'); my %count; $count{$_}++ foreach (@list_a, @list_b); foreach (sort keys %count) { print "$_ appears $count{$_} time.\n" if $count{$_} == 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Compare two index lists
by princepawn (Parson) on Aug 11, 2003 at 17:41 UTC | |
by monktim (Friar) on Aug 11, 2003 at 17:53 UTC |