Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: windows perl and paths

by flieckster (Scribe)
on Nov 19, 2016 at 19:23 UTC ( #1176168=note: print w/replies, xml ) Need Help??


in reply to Re: windows perl and paths
in thread windows perl and paths

I'm on strawberry perl, the other way and it can't find the directory at all.

Replies are listed 'Best First'.
Re^3: windows perl and paths
by stevieb (Canon) on Nov 19, 2016 at 20:21 UTC

    So you're saying that you get the specified warning when you try to chdir to Z:/Partners/Wilsons/2push_test?

    Can you, from the command line, cd Z:\Partners\Wilsons\2push_test successfully?

    These are all Strawberry Perl installs, that I ran this code against:

    use warnings; use strict; use feature 'say'; use Cwd; say getcwd(); chdir 'c:/repos' or die $!; say getcwd();

    Output:

    c:\>berrybrew exec perl chdir.pl Perl-5.24.0_64 ============== c:/ c:/repos Perl-5.22.2_64 ============== c:/ c:/repos Perl-5.18.4_64 ============== c:/ c:/repos Perl-5.10.1_32 ============== c:/ c:/repos

    So using forward slashes without escaping them most definitely works all the way back to at least 5.10.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-28 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?