Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Output capture of CPAN shell

by greengaroo (Hermit)
on Dec 05, 2012 at 21:56 UTC ( #1007413=note: print w/ replies, xml ) Need Help??


in reply to Output capture of CPAN shell

Why do you think you need to double the backslash on Windows? It's not because of Windows, it's because Perl uses the backslash as the escape character.

In your first attempt, Perl was trying to escape "p" and "l", converting regular characters to special characters, but then the path you were trying to reach didn't exists.

In your second attempt, you double the backslash, basically you escape the special character "\" and it becomes a regular character, so Perl really see a backslash, and the path now exists.

But, in Perl on Windows, you can also use the forward slash "/" in file paths.

Hope this help you understand what was going on internally.

Testing never proves the absence of faults, it only shows their presence.


Comment on Re: Output capture of CPAN shell

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-07-10 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls