$file2 = param('file'); # A windows path is supposed to be filled here + (c:/foo/bar.txt) <br>print "$file2\n"; # c:foobar.txt is printed <br>$file2 =~ s[\\][/]g; # It's too late to substitute.
As you can see, this is quite a pickle. How do I fix this?
In reply to / to \ substitution by NeverMore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |