in reply to CGI + safeguards

Can anyone suggest why is might be going wrong.

if (($box !~ /\w+/) && ($value !~ /\w+/)) { print "You haven't entered anything on the form"; print STDOUT $cgi->end_html; exit (0); }
Some things are seem strange to me:
-- Joost downtime n. The period during which a system is error-free and immune from user input.