yes, the printenv.pl script works fine, and the CGI module works fine too, although I have to create a CGI object:
--
my $q = new CGIl
print $q->header();
--
I can't do this:
--
print header();
--
as I'll get this error:
--
[error] Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::F_3a_Net_Apache_20Group_Apache2_perl_test_2epl::header called at (eval 170) line 3.\n
--
although in startup.pl, there's use CGI();


From: Randy Kobes <[EMAIL PROTECTED]>
To: Ray Chuan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [error] Can't locate object method "bootstrap" via package "DBI"
Date: Mon, 29 Nov 2004 09:43:55 -0600 (CST)


On Mon, 29 Nov 2004, Ray Chuan wrote:
[ ... ]
> >If you don't have another Perl, do you have problems using
> >other modules with an xs component? For example, does
> > use Digest::MD2;
> >cause problems (assuming you have Digest::MD2 installed)?
>
> here's the script i ran:
> --
> #!F:/Net/Perl/bin/Perl.exe
> print "Content-type: text/plain\n\n";
> use strict;
> # OO style
> use Digest::MD2;
> my $ctx = Digest::MD2->new;
> my $data = "foo";
> $ctx->add($data);
> my $digest = $ctx->digest;
> --
> #error.log
> [error] Can't locate object method "new" via package "Digest::MD2" at (eval
> 16) line 9.\n
>
> it works fine in cgi-bin, but it doesn't in the mod_perl dir...


Strange ... I assume that a simple ModPerl::Registry script
under the mod_perl directory that, for example, just prints
out the environment variables (without using any other
module) works OK? And what about using a module (eg, CGI)
that doesn't have an xs component - does that cause any
problems?

--
best regards,
randy

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


_________________________________________________________________
Download MSN Messenger emoticons and display pictures. http://ilovemessenger.msn.com/?mkt=en-sg



-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to