sub error { # Write the HEAD section, including the title. print $query->start_html("Error"); print "File open failed."; print $query->end_html; }