#!/usr/bin/perl use strict; use warnings; use HTML::Tiny; $| = 1; my $h = HTML::Tiny->new; # Output a simple HTML page print $h->table( [ $h->tr( [ $h->th( 'Name', 'Score', 'Position' ) ], [ $h->td( 'Therese', 90, 1 ) ], [ $h->td( 'Chrissie', 85, 2 ) ], [ $h->td( 'Andy', 50, 3 ) ] ) ] ); # Outputs #
| Name | Score | Position |
|---|---|---|
| Therese | 90 | 1 |
| Chrissie | 85 | 2 |
| Andy | 50 | 3 |