in reply to cgi question
use CGI qw(:standard) print header(),start_html ("resource input"),h1("recource"); [download]
Just gotta check.. was this code copied out of your script? ..it's missing a semicolon (;) at the end of the first line.
cheers,
J