in reply to Re: Why am I getting "premature end of script header"? - eval { use }
in thread Why am I getting "premature end of script header"?
thanks...
what about this...
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"; } } }
Considered by ikegami: Dup of Re^2: Why am I getting "premature end of script header"?
Unconsidered by Arunbear: reaping blocked by keep (and edit) votes; (Keep: 5, Edit: 3, Reap: 18)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why am I getting "premature end of script header"? - &subroutine calling style
by imp (Priest) on Nov 27, 2006 at 22:46 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 22:59 UTC | |
by imp (Priest) on Nov 27, 2006 at 23:21 UTC | |
by lokiloki (Beadle) on Nov 27, 2006 at 23:24 UTC | |
by ikegami (Patriarch) on Nov 27, 2006 at 23:49 UTC | |
by tye (Sage) on Nov 28, 2006 at 00:49 UTC |
In Section
Seekers of Perl Wisdom