in reply to Basic CGI

I suggest you read a bit more about it... here's a quicky example(untested)

### file 1 called functions.pl

#!perl sub &printHtml { # here you can print your html.. # you can do so using CGI.pm or you can manually print them.. # I assume you don't know what CGI.pm is also, so you can do this: print "Content-type: text/html\n\n"; print <<EOF; <HTML> <body> <h1>Hello World!</h1> </body> </html> EOF } 1; # return true.

### Here is the main file index.pl

#!perl require './functions.pl'; # so here you can do this : &printHTML;

you have a lot to read, I suggest you get yourself a good Perl book and start learning.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.