EmmittSmith has asked for the wisdom of the Perl Monks concerning the following question:

Hey, I've recently installed Windows XP (not by choice :P) and just installed Perl. However, I went to setup perl in my autobat file, by inserting SET PATH=(path);%path% and restarting. However, I still can't use PERL in the commmand line.

Does anyone know what the problem is/ how to fix it?

Thanks, Emmitt

Replies are listed 'Best First'.
Re: Windows XP trouble
by Rex(Wrecks) (Curate) on May 21, 2002 at 20:18 UTC
    See Anyone know how to get cmd line perl? and another thing to try is open cmd.exe and type set path, this will tell you if the perl bin dir is in your path. If not you can set it as admin under Properties of "My Computer" -->Advanced-->Environment Variables. There should be 2 panes, one for user and one for system. Find PATH under the system pane and edit it with the path to perl\bin.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
Re: Windows XP trouble
by arunhorne (Pilgrim) on May 21, 2002 at 22:57 UTC
    EmmittSmith I run WinXP/Linux dual and find it to be a perfectly good platform for Perl development. I have installed ActiveState perl in D:\Perl thus the Perl.exe file is in D:\Perl\bin. As such I go to Control Panel->Advanced tab->Environment Variables... and edit the path statement to include the perl\bin directory:

    D:\Perl\bin\

    My path looks like the following (i've highlighted the relevant perl entry:

    C:\Tcl\bin;C:\Python21\.;D:\Perl\bin\;C:\Program Files\GNU\WinCvs 1.2

    Make sure you do this for the 'System Variables' path rather than the 'User' one if you want it to work for all users of your system. Btw, theres no need to restart in XP for these changes to take effect. Just spawn a new command shell: start menu -> run -> cmd.exe

    Arun.

      Okay, thanks a lot man. Yeah I run a XP/Linux dual too :)