perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
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
> > 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, but in this case it is
part of mod_perl, but is only compiled in when you give


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.


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:         Voice:    +49 6133 925131
WWW:      Fax:      +49 6133 925152

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message