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

Re: Accessing Windows Path from Perl script

by roboticus (Chancellor)
on Aug 13, 2010 at 14:58 UTC ( #854923=note: print w/replies, xml ) Need Help??


in reply to Accessing Windows Path from Perl script

kulls:

Normally perl will work fine using forward slashes instead of backslashes--even in Windows. So you can save yourself tons of headaches by using them:

my $dir = "//$server/d/logs/tomcat";

The only time I have problems with it is when I'm executing another program from perl. Then you may have problems with the shell handing special characters, the external program not wanting forward slashes, etc. But I rarely execute other programs from perl, so it hasn't been a problem for me.

...roboticus

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-05-09 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (102 votes). Check out past polls.

    Notices?