Gossamer Forum
Home : General : Perl Programming :

HTML output in Perl

Quote Reply
HTML output in Perl
I am a perl dummy, so pls forgive me my profane question.
I am using Links 2.0 and intend to add html headers and footers in two perl scripts I am using:

http://www.japanreference.com/cgi-bin/spider.cgi

http://www.japanreference.com/cgi-bin/readdb.pl.

I managed to insert headers in both scripts, but failed in doing the same with the footers. See the scripts below.

http://www.japanreference.com/spider.txt

http://www.japanreference.com/readdb.txt

Where and how would I insert the footers? Could anyone assist please? My thanks in advance.

Quote Reply
Re: HTML output in Perl In reply to
Hi:

For spider.cgi script, insert footer in this block:

print <<"EOM";

</body>
</html>

For other script, I would guess after the line:

print "$banner";


Dan Smile


Quote Reply
Re: HTML output in Perl In reply to
Thanks a lot, Dan! I finally managed to get my spider.cgi to run! Smile

However, configuring readdb.pl is still a mystery to me.