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"; } } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why am I getting "premature end of script header"?
by ikegami (Patriarch) on Nov 27, 2006 at 22:31 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 22:49 UTC | |
by imp (Priest) on Nov 27, 2006 at 22:54 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 23:16 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 23:17 UTC | |
| |
by ikegami (Patriarch) on Nov 27, 2006 at 22:50 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 23:10 UTC | |
by ikegami (Patriarch) on Nov 27, 2006 at 23:33 UTC |
In Section
Seekers of Perl Wisdom