# These methods help in generating HTML output to send to the browser.
use HTML;
# url() will go to the URL specified. For local files it will serve the contents.
# For remote files and under Windows servers it will redirect using a
# refresh tag.
$url = 'http://coralcoast.com/de.cgi?test';
HTML::url( $url)# display $url on current window (doesn't return)
# If you need to write raw HTML, use start() to prepare the browser.
HTML::start();# Content-type: text/html\n\n
$html = HTML::fetchPerlOfWisdom( $emporium); # defaults to artgallery
# To divide the page horizontally into more than one frame and display
# the results:
use HTML::Frames;
HTML::frames( "rowOne.cgi", "rowTwo.html", "rowThree.cgi?test=1");
# HTML can be converted to plain text or an email (mime) string. The
# text conversion attempts to emulate many HTML tags including
# headings and lists. The email conversion uses mime types to
# provide both the text and HTML versions of the contents.
use HTML::Convert;
$content = HTML::convertToText( 'filename'); print $$content;
$content = HTML::convertToEmail( 'filename'); print $$content;