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

You have to watch the order the things go on the @dirs because it does my $archlib = @dirs[-1]; after the paths have been munged. I only did that for convenience and not special case it at that point.

But the script looks like it should work fine.

/J\

Replies are listed 'Best First'.
Re^6: uninstalling modules
by CassJ (Sexton) on Jul 21, 2004 at 13:46 UTC
    arse. didn't see that, so
    -my $archlib = @dirs[-1] +my $archlib = @dirs[1];
    if I'm unshifting rather than pushing?

    Cxx

      @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