Script calling CGI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • palm
    New Member
    • Feb 2007
    • 27

    #16
    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.

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #17
      Palm,

      your questions are very basic. You need to maybe slow down and read some basic perl primers and become familiar with the perl and perl module documentation. All can be found at the perldoc website:



      if you have a local installation of perl all the documentation comes along with perl so you can also read it on your local computer.

      Comment

      Working...