Your first script can't work when called as a program:
> perl -w tmp.pl Can't call method "content_type" on an undefined value at tmp.pl line +5.
So whatever you're calling "direct" is a different program from what you're calling through mod_perl.
Maybe your instance of modeperl is something different?
In reply to Re: Can't locate object method "content_type"
by Corion
in thread Can't locate object method "content_type"
by gaja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |