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


in reply to convert windows path

Try $var =~ tr!\\!/!;

But if you're using ActiveState Perl then be aware that the built-in operators and functions understand slashes in all directions anyway.