Please help!use CGI qw(:all); $file2 = param('file'); # If c:\foo\bar.txt is filled in the form fiel +d named 'file'... print "$file2\n" # c:foobar.txt is printed, when c:\foo\bar.txt should + be! $file2 =~ s[\\][/]g; # Too late to substitute print "$file2\n" # c:foobar.txt is still printed when c:/foo/bar.txt s +hould be!
-NM
In reply to Too late to substitute param() by NeverMore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |