in reply to cgi question

After having fixed the missing semicolon after the use CGI ... it worked fine for me, producing:

Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><head><title>resource input</title>
</head><body><h1>recource</h1>
What version of CGI.pm and Perl are you using?

/J\