[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Apache::Constants::NOT_FOUND() -> undefined?
From:       Matt Sergeant <matt () sergeant ! org>
Date:       2000-07-31 8:51:09
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic