Hi There,
I'm new to Perl and I just wrote few lines to do an http request. The code is working fine and I'm trying to save the variables (param('age')). They just show up inside the html page, but not as an out put in the screen editor. What do I have to do inorder to get them printed in the editor or save to a file? This is my variable in Perl:
my $age = $cgi->param('age') ;
when I say "print $age" in Perl, it's printing space, but when I say like this in html:
<BODY>
<P>$age</P>
it's printing the age in the web. I want to print the variable on the screen/to a file. Does any one know how to fix it?
Palm.
I'm new to Perl and I just wrote few lines to do an http request. The code is working fine and I'm trying to save the variables (param('age')). They just show up inside the html page, but not as an out put in the screen editor. What do I have to do inorder to get them printed in the editor or save to a file? This is my variable in Perl:
my $age = $cgi->param('age') ;
when I say "print $age" in Perl, it's printing space, but when I say like this in html:
<BODY>
<P>$age</P>
it's printing the age in the web. I want to print the variable on the screen/to a file. Does any one know how to fix it?
Palm.
Comment