http://qs321.pair.com?node_id=123556


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.

Replies are listed 'Best First'.
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.