#!/usr/bin/perl -w use strict; use CGI qw (:standard); my %sites; while () { chomp; my($name, @status) = split/\|/; $sites{$name} = [@status]; } print header; print start_html; print table(Tr(th(['Site Name', 'Site Address', 'Status', 'Comments'])), Tr([ map { td([$_, @{$sites{$_}}])} keys %sites ])); print end_html; __END__ site A|www.sitea.com|0|Not ready site B|www.siteb.org|1|Ready!!