I didn't read the original post but based on your spec of:
"find me keys that are not in both hashes"
I think the boilerplate code should be:
foreach (keys %hash_one) {
push(@here_not_there, $_) unless exists $hash_two{$_};
}
foreach (keys %hash_two){
push(@here_not_there, $_) unless exists $hash_one{$_};
}
cliff rayman
genwax.com
Ed Phillips wrote:
> Really Dheeraj,
>
> This is not a mod_perl specific question, and I don't know the all important context
>into which this boilerplate code you are seeking to elicit from the list is to be
>dropped.
>
> here is a boilerplate "find me keys that are not in both hashes":
>
> foreach (keys %hash_one) {
> push(@here_not_there, $_) unless exists $hash_two{$_};
> }
>
> shame on you. To expiate your sins, read perldoc pages for two hours
> everyday for two weeks.
>
> ed