Thank you for your response. You are right it works as it is. However, here is my program and the program stops running when reaches the print "$tot1\n"; However, when I block out all the tot's equations, it runs again. Please help. Thanks.
#!/usr/bin/perl -w
use CGI;
$query = new CGI;
#pollr.cgi
$counti2=0;
print $query->header;
open(INF,"poll.out" or dienice("Couldn't open survey.out for reading: $! \n"
@data = <INF>;
close(INF);
# First we initialize some counters and hashes for storing the
# summarized data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.