Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re:{2} convert windows path

by jeroenes (Priest)
on Nov 06, 2001 at 16:20 UTC ( #123556=note: print w/ replies, xml ) Need Help??


in reply to Re: convert windows path
in thread convert windows path

Didn't you want to say: $var =~ tr!\\!/!s;

Update ...oops, apparently not what was wanted. It's just that in my unix eye the double slash at the beginning looks so ugly.


Comment on Re:{2} convert windows path
Download Code
Re: Re:{2} convert windows path
by Tyke (Pilgrim) on Nov 06, 2001 at 16:32 UTC
    That would change \\machine\dir\file to /machine/dir/file which wasn't what the original poster wanted (the way I read the question anyway).

    Update Sorry jeroenes must've posted at the same moment. BTW, my first take was to agree with you. I hadn't even considered adding it. It was only while replying that I saw it wouldn't work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2014-08-22 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (161 votes), past polls