$perl -nle'push @{$h{$_}},$ARGV}{print "$_ found in @{$h{$_}}" for keys %h' ?.dat