#! /usr/bin/perl use strict; use CGI; our $q = CGI->new(); our $params = $q->Vars; open DAT, $params->{datafile}; print $q->header, $q->start_html( -title => 'Kenya Regiment Association - Long Roll', -meta => 'Kenya Regiment Association - Long Roll', -style => { -src=>'krstyle.css' }, ); print << 'EOT';
EOT while () { chomp, my @x = split(/\t/); my $next=;chomp $next; my @y = split(/\t/,$next); print "", " ", " ", " ", " ", "\n"; } close DAT; print << 'EOT';
Roll Number Name Roll Number Name
",$x[0],"",$x[1],"",$y[0],"",$y[1],"
EOT print $q->end_html;