in reply to Re^5: uninstalling modules
in thread uninstalling modules

arse. didn't see that, so
-my $archlib = @dirs[-1] +my $archlib = @dirs[1];
if I'm unshifting rather than pushing?

Cxx

Replies are listed 'Best First'.
Re^7: uninstalling modules
by gellyfish (Monsignor) on Jul 21, 2004 at 13:51 UTC

    @dirs[0] If it is the first one on the array

    /J\

      eep. confused now. Which one is it supposed to be? sitearchexp or archlibexp? I was going for archlibexp - is this wrong?

      Thanks again

      Cxx

        $dirs[-1] is the last thing in the array, which in the case is $Config{archlibexp}. Just to get it straight $Config{archlibexp} is the location of the archive specific directory for stuff that is installed as part of the core distribution and generally won't have locally installed modules in (expcept perhaps if they are dual-lifed like Term::Cap and you have installed a newer version from CPAN). $Config{sitearchexp} is the architecture specific location for locally installed modules. Now you may have noticed that this does not take into account vendor specific directories as included in perl 5.8.* - I think this is probably a further bug in ExtUtils::Installed which I will need to update the patch to deal with.

        /J\