use strict; use warnings; # Uninitialized errors are normal for this kind of CGI. no warnings "uninitialized"; # LWP was not being used. use CGI; # Do not leave this in the script production. use CGI::Carp qw(fatalsToBrowser); # ->new is better; search indirect object syntax problems. my $q = CGI->new; print $q->header, $q->start_html; my $previousTotal = $q->param('sumTotal'); # Printing raw user input is a serious security problem. # Adding 0 will numify and clobber strings like "