Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

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

by jimbojones (Friar)
on Apr 14, 2005 at 14:37 UTC ( [id://447902]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Hi

This error occurs because CPAN.pm is kicking off a system command of the form:
C:\Documents and Settings\BioGeek\Perl\bin\perl.exe <some arguments>
when DOS wants:
"C:\Documents and Settings\BioGeek\Perl\bin\perl.exe" <some arguments>
If you can provide some more information as to where the error is occurring, by providing more logging info from before the error occurs, maybe we can find which piece of code in CPAN.pm is throwing the error. One possible place is in (Perl 5.8.4, your's may vary)
sub perl { my($self) = @_; my($perl) = File::Spec->file_name_is_absolute($^X) ? $^X : ""; #### JJ Comment - on my machine $^X is "C:\program files\perl\bin\ +perl.exe #### could change this to #### my($perl) = File::Spec->file_name_is_absolute($^X) ? "\"$^X\" +" : ""; my $pwd = CPAN::anycwd(); my $candidate = File::Spec->catfile($pwd,$^X); $perl ||= $candidate if MM->maybe_command($candidate);
Hope this helps, J

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447902]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.