in reply to Re: C:\Documents is not recognised as an internal or external command, program or batchfile.
in thread C:\Documents is not recognised as an internal or external command, program or batchfile.

Hi

I tried this for the $^X example above, and it doesn't help. I wish it did.
C:\Documents and Settings\jim>set PATH=C:\progra~1\perl\bin;%PATH% C:\Documents and Settings\jim>which perl.exe C:\progra~1\perl\bin\perl.exe C:\Program Files\Perl\bin\\perl.exe C:\Documents and Settings\jim>perl -e "print $^X" C:\Program Files\Perl\bin\perl.exe C:\Documents and Settings\jim>
I also tried updating Config.pm to have C:/progra~1/perl. This also didn't help.

- j

  • Comment on Re^2: C:\Documents is not recognised as an internal or external command, program or batchfile.
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: C:\Documents is not recognised as an internal or external command, program or batchfile.
by PodMaster (Abbot) on Apr 15, 2005 at 01:16 UTC
    Try
    use Win32; use Config(); use File::Spec; $^X = Win32::GetShortPathName($^X); do File::Spec->catfile( $Config::Config{bin}, 'cpan.bat' );
    Might also want to give CPANPLUS a try.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.