Jack.v has asked for the wisdom of the Perl Monks concerning the following question:

Hi !

When I execute the command set in the command invit, I'm having 2 path for perl

C:\Perl64\site\bin;C:\Perl64\bin AND C:\Perl\site\bin;C:\Perl\bin

Could you please tell me what it is and how to erase the last one please !

Replies are listed 'Best First'.
Re: Both path
by VinsWorldcom (Prior) on Apr 05, 2012 at 15:31 UTC

    UPDATE: I'm guessing you installed Activestate Perl and then installed Activestate 64-bit Perl without removing the first installation; hence the two paths.

    On Win7, you can remove the unwanted one by right-clicking "My Computer", selecting "Properties" and selecting "Advanced system settings". In that dialog, press "Environment Variables..." button and in the "System Variables" section of the new window, "Edit..." the "Path" variable.

    Alternatively, don't do anything as Windows - like most other OS's I know - searches the path in order so it will find (and run) the perl.exe found in C:\Perl64\bin and never make it to the C:\Perl\bin directory.

      Yes but why I have such variable environment ?

      It is due to a previous version of PERL ? It will not provoke trouble if I remove it ?

      Update: There is only ActivePerl 5.12.3 Build (64bit) install

Re: Both path
by InfiniteSilence (Curate) on Apr 05, 2012 at 15:20 UTC
    Looks like you are using Windows and I'm guessing you are talking about your %PATH% variable. Just learn how to reset it and you will find bliss.

    Celebrate Intellectual Diversity