When I running the following .cgi script, not sure why each print statement is not printing on a new line, even after entering \n. Browser=IE6
See Perl code below:
- #!C:/perl/bin/perl.exe -w
-
-
print "Content-type:text/html\n\n";
-
-
use CGI qw(:standard);
-
-
$name = param('name');
-
$age = param('age');
-
$home = param('home');
-
-
print "NAME: $name\n";
-
print "HOME: $home\n";
-
print "AGE: $age\n";
The output I get is all on one line:
NAME: fred HOME: england AGE: 42
I am going to guess that this script is called from another script because I don't see the HTML in here for the form.
Either way, I went and set the variables (all 3) to values, and it printed just fine on 3 different lines.
Not sure why it would be doing that to you.
Regards,
Jeff