Hi guys

I'm having a pickle with trying to importing Apache:

I'm following the example in the Mod Perl Cookbook (v1) and looked at
the code samples from the book online.

httpd.conf has this:
________________________
PerlSwitches -Mlib=/Library/Webserver/Documents/mymod/perl

   PerlModule ModPerl::Registry
   PerlModule mymod::hook

<FilesMatch "\.html$">
        SetHandler perl-script 
        Perlhandler mymod::hook->handler
</FilesMatch>
________________________

________________________
package mymod::hook;

use strict;
use warnings;

use Apache::Constants qw(:common);
use HTML::Template;
use mymod::Apache;

use utf8;
use Encode qw/is_utf8 decode encode/;
binmode(STDOUT, ":utf8");

sub handler {
        my $r = mymod::Apache->new(shift);

        $r->content_type('text/html'); # do output of header
        
        print $r->uri;
        return Apache::OK;
}

1;
________________________

________________________
#!/usr/bin/perl
package mymod::Apache;

use Apache;

use DynaLoader;

use strict;

our @ISA = qw(DynaLoader Apache);

sub new {

  my ($class, $r) = @_;

  $r ||= Apache->request;

  return bless { r => $r }, $class;
}
1;
________________________


I get an error stating "Can't locate auto/mymod/Apache/content_typ.al in @INC"

Any idea what I'm missing? Is this another one of those things that's
changed in MP2 ?

TIA

Angie

Reply via email to