#!/usr/bin/perl
#cgi lib, no need to parse form
use strict;
use warnings;
use CGI qw(:standard);
my $infile = "/home/ajb004/public_html/arabic.txt";
print header();
print start_html("Available Classes");
if (request_method() eq 'POST') {
open my $fh, $infile or die $!;
while (<$fh>) {
s/_/ /g;
my @word = split ',';
my $result = param($word[0]) ? 'checked' : 'not checked';
print qq{$word[0]: $result
};
}
close $fh or die $!;
} else {
print qq{