perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8
Date Fri, 21 Dec 2001 04:30:36 GMT
> > [416]ERR: 24: Error in Perl code: Can't locate loadable object for
module
> > Apache::File in @INC (@INC contains:

Perl is looking for some C code, which correspond to Apache::File and is not
finding it. Normaly this C code would be in File.so, but in this case it is
part of mod_perl, but is only compiled in when you give

PERL_FILE_API=1

to mod_perl's Makefile.PL.

> [416]ERR: 24: Error in Perl code: Can't locate object method "new" via
> package "Apache::File" at /wwww/htdocs/init.epl line 9.

This is happeing because Perl executes the "use" only once, on the following
calls to the page it won't be executed, but Apache::File isn't loaded
completly, so you get this error.

Gerald

P.S. If you can't or don't want to recompile mod_perl with the above switch,
use IO::File instead

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message