crmpicco - there's more than one way to do it - just printing it may be ok, though you may want to use a heredoc thus:
print <<EOF
<table style="border:1px solid #000;">
<tr>
<td>$WeePit</td>
</tr>
</table>
EOF
# more code
You could use the CGI.pm way:
use strict;
use CGI;
my $q = new CGI;
print $q->header( "text/html" ),
$q->start_html( -title => "Table Example" ),
$q->h1( "Table Example" ),
$q->p( "This is a table.ââ¬Â ),
$q->table( {style => 'broder:1px solid #000;'},
$q->Tr( {align => "center"},
[ $q->th( [ 'Heading 1', 'Heading Two', 'Heading 3' ] ),
$q->td( ['x','y',$WeePit] ) ] )
)
),
$q->end_html;
You could use HTML::Template, and a template like this:
<html>
<head>
<title>Table Example</table>
</head>
<body>
<table style="border:1px solid #000;">
<tr>
<td><TMPL_VAR NAME='WeePit'></td>
</tr>
</table>
</body>
</html>
I'd probably stick with just using print for now, until you have a better handle on perl.
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com