in reply to Re^2: Why am I getting "premature end of script header"?
in thread Why am I getting "premature end of script header"?
My solution already does exactly that. Just replace the body of if ($@) with whatever you want.
What you have there is the same as
eval ("use fakemodule;"); if ($@) { print "error happened $@"; } else { print "error didnt happen, do some stuff"; } print "Content-type: text/html\n\n"; print "here we go again..."; &a; sub a {}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Why am I getting "premature end of script header"?
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 imp (Priest) on Nov 27, 2006 at 23:20 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