Hello there,
can anybody tell me how to use the split function so that the file coming in will be displayed into the table.
Script below..
#!/usr/bin/perl
print "Content-type: text/html\n\n";
use CGI qw(:standard -debug);
use strict;
my @records;
open( INFILE, "courses.txt" ) or die( "Error opening courses.txt $!, stopped");
print while(<INFILE>);
#@records = < INFILE >;
close( INFILE );
#foreach my $rec (@records)
# {
# chomp($rec);
# }
#generate HTML acknowledgment
#print "<HTML><HEAD><TITLE>Individual Results</TITLE></HEAD>\n";
#print "<BODY>\n";
#print "<H2>Student Survey Results</H2>\n";
#print "<TABLE><B>\n";
#print "<TR><TD>$name</TD><TD>$program</TD><TD>@courses</TD></TR>\n";
#print "</TABLE><BR>\n";
#print "</B></TABLE>\n";
print "</BODY></HTML>\n";
Thanks in advance
Hawk
can anybody tell me how to use the split function so that the file coming in will be displayed into the table.
Script below..
#!/usr/bin/perl
print "Content-type: text/html\n\n";
use CGI qw(:standard -debug);
use strict;
my @records;
open( INFILE, "courses.txt" ) or die( "Error opening courses.txt $!, stopped");
print while(<INFILE>);
#@records = < INFILE >;
close( INFILE );
#foreach my $rec (@records)
# {
# chomp($rec);
# }
#generate HTML acknowledgment
#print "<HTML><HEAD><TITLE>Individual Results</TITLE></HEAD>\n";
#print "<BODY>\n";
#print "<H2>Student Survey Results</H2>\n";
#print "<TABLE><B>\n";
#print "<TR><TD>$name</TD><TD>$program</TD><TD>@courses</TD></TR>\n";
#print "</TABLE><BR>\n";
#print "</B></TABLE>\n";
print "</BODY></HTML>\n";
Thanks in advance
Hawk