There's no need to be careful if you handle the 0 case directly:
use List::Util; my $hasInt = defined first { exists $hashRef2->{$_} } keys %$hashRef1 ;
lodin
In reply to Re^2: Common hash keys
by lodin
in thread Common hash keys
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |