X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=773b552434958966860724171419454699d8ce3c;hp=4f7d4e3ccdc9211c60219a640503600122ad2c9e;hb=df8e0ca6a336fb37fd14d40fa345e787bc75b8c2;hpb=cc670b3044ce1fc9389d9845ee5ea91459f2612e diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 4f7d4e3..773b552 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -31,16 +31,21 @@ my $command = qq( -mMethod::Generate::BuildAll -mMethod::Generate::DemolishAll -mJSON::PP - -e 'print join "\\n", reverse \%INC' + -e 'print join "\\n", \%INC' ); $command =~ s/\n/ /g; -chomp(my %mods = qx($command)); +chomp(my @inc = qx($command)); + +my %mods = reverse @inc; my @non_core_non_arch = grep +( - not (/^\Q$Config{privlibexp}/ or /^\Q$Config{archlibexp}/) -), grep !/\Q$Config{archname}/, grep !/\W$Config{myarchname}/, keys %mods; + not ( + /^\Q$Config{privlibexp}/ or /^\Q$Config{archlibexp}/ + or /^\Q$Config{vendorarchexp}/ or /^\Q$Config{sitearchexp}/ + ) +), grep !/\Q$Config{archname}/, grep !/\Q$Config{myarchname}/, keys %mods; my $start = stripspace <<'END_START'; # This chunk of stuff was generated by Object::Remote::FatNode. To find