in reply to Comparing two hashes for duplicate keys with no case sensitivity
my $string = join " ", keys %hash1; foreach my $item ( keys( %hash2 ) ) { print "$item matches" if ( $string =~ /\b$item\b/i ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing two hashes for duplicate keys with no case sensitivity
by chromatic (Archbishop) on Aug 15, 2008 at 01:07 UTC | |
by pat_mc (Pilgrim) on Aug 15, 2008 at 16:36 UTC | |
by chromatic (Archbishop) on Aug 15, 2008 at 17:08 UTC |