in reply to Need help with downloading
Never tried to do this, but my instinct says it should be:
and notprint "Content-Disposition:attachment;filename=$filenm","\n";
print "Content-Disposition:attachment;filename=$filenm","\n\n";
Alberto Simões
In Section
Seekers of Perl Wisdom