Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Accessing Windows Path from Perl script

by roboticus (Chancellor)
on Aug 13, 2010 at 14:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://854923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found