You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by will trillich <wi...@pinncomp.net> on 2000/07/31 10:34:08 UTC

Apache::Constants::NOT_FOUND() -> undefined?

this is bound to be simple, so of course i'm at a loss to find it...

% perl -MApache::Constants -e 'print NOT_FOUND'
Undefined subroutine &Apache::Constants::NOT_FOUND called at -e line 1.

i also try it via

	#!/usr/bin/perl
	use Apache::Constants qw(:standard);
	print NOT_FOUND;

with identical results (i.e. the requested constants are not defined).

what am i not seeing?

--

% perl -v

This is perl, version 5.005_03 built for i386-linux

[snip]
% perl -MApache::Constants -e 'print join "\n",values %INC'
/usr/lib/perl5/5.005/i386-linux/Apache/Constants.pm
/usr/lib/perl5/5.005/AutoLoader.pm
/usr/lib/perl5/5.005/Exporter.pm
/usr/lib/perl5/5.005/strict.pm
/usr/lib/perl5/5.005/i386-linux/Apache/Constants/Exports.pm
/usr/lib/perl5/5.005/i386-linux/mod_perl.pm
/usr/lib/perl5/5.005/i386-linux/DynaLoader.pm
/usr/lib/perl5/5.005/vars.pm

% uname -a
Linux server.serensoft.com 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 unknown

and, not that it matters in this instance...

% apache -v
Server version: Apache/1.3.9 (Unix) Debian/GNU
Server built:   Apr 29 2000 10:48:16

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Their is five errers in this sentance.

Re: Apache::Constants::NOT_FOUND() -> undefined?

Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 31 Jul 2000, will trillich wrote:

> this is bound to be simple, so of course i'm at a loss to find it...
> 
> % perl -MApache::Constants -e 'print NOT_FOUND'
> Undefined subroutine &Apache::Constants::NOT_FOUND called at -e line 1.
> 
> i also try it via
> 
> 	#!/usr/bin/perl
> 	use Apache::Constants qw(:standard);
> 	print NOT_FOUND;
> 
> with identical results (i.e. the requested constants are not defined).
> 
> what am i not seeing?

The constants are compiled and brought in only when running under
mod_perl.

(and there's no :standard exporter flag, try :common)

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org