determine unique perls by their sitelibexp config setting
Robert 'phaylon' Sedlacek [Wed, 25 Jul 2012 20:54:17 +0000 (20:54 +0000)]
lib/System/Introspector/Probe/Perls.pm

index d25e70c..354a941 100644 (file)
@@ -17,10 +17,13 @@ sub gather {
     return transform_exceptions {
         my @configs = $self->_find_possible_perl_configs;
         my %found;
+        my %seen;
         for my $config (@configs) {
             my $info = transform_exceptions {
                 return $self->_gather_info($config);
             };
+            next if $info->{config}{sitelibexp}
+                and $seen{$info->{config}{sitelibexp}}++;
             $found{$config} = $info
                 if defined $info;
         }