NeverMore has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Too late to substitute param()
by lhoward (Vicar) on Jun 02, 2000 at 01:30 UTC | |
by NeverMore (Acolyte) on Jun 02, 2000 at 07:22 UTC | |
by lhoward (Vicar) on Jun 02, 2000 at 15:15 UTC | |
|
RE: Too late to substitute param()
by nuance (Hermit) on Jun 02, 2000 at 06:04 UTC |