http://qs321.pair.com?node_id=586344


in reply to Re: Why am I getting "premature end of script header"?
in thread Why am I getting "premature end of script header"?

Thanks very much... I appreciate your help. So the following would be a fine way to test if a module is available and either use it or not use it accordingly?
print "Content-type: text/html\n\n"; print "here we go again..."; &a; sub a { BEGIN { eval ("use fakemodule;"); if ($@) { print "error happened $@"; } else { print "error didnt happen, do some stuff"; } } }