gerard uolaquetalestem wrote:
Hi again
I'm just trying to translate URI with a modperl2 module, and i've got it in windows os.
Then i wanted to install to my linux os but life is not as easy as this.
I have problems with that module, and i've tried the following things:


First of all i comment most of the module, actually it is only:
package modulename;

use Apache::RequestRec();
use Apache::Const -compile => qw(DECLINED);

sub handler {
        return DECLINED;
        }
1;

where did you pick that example from? It should be either:


 use Apache::Const -compile => qw(DECLINED);
 ...
 return Apache::DECLINED;

or

 use Apache::Const qw(DECLINED);
 ...
 return DECLINED;

the latter imports DECLINED into your code, the former doesn't, so you need to use a fully-qualified name.


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to