I am guessing that you are a VB programmer that is new to perl and you have been given the task of coming up with a CGI script?
 
The good news is that there is an entire module already built in perl that is relatively easy to use. It is very well documented, and many, many example scripts are available on the web for you to review. The module is called CGI. It is available from CPAN if you wil be working on a *nix platform, or if you are on a win32 platform you can install it via ppm ( c:\> ppm install cgi ).
 
There is also a large number of tutorials / documentation available for using the CGI module. One of them which I have found to be useful in the past can be viewed at http://stein.cshl.org/WWW/software/CGI/cgi_docs.html. There are a few more over on the perl website, which can be found at http://www.perl.com. There is also a beginners cgi tutorial at http://www.lies.com/begperl/. One of the other sites which I recommend quite a bit can be found at http://wdvl.internet.com/Authoring/Languages/Perl/. This site provides some real world examples on the use of perl, and the cgi and lwp modules.
 
Hope this helps.
 
Will
 
 
----- Original Message -----
Sent: Sunday, March 09, 2003 3:57 PM
Subject: (no subject)

Is there any one know how to call a html file from perl?

Thank you very much.

 

# is this the right way to compare string?

if (($username = "administrator") && ($password = "test")){

#          call http://right.html

}

# is this the right way to use else method

else if {

#          call http://wrong.html

}

 

Reply via email to