[MP2] Import Apache with @ISA

[prev] [thread] [next] [Date index for 2005/04/20]

From: angie ahl
Subject: [MP2] Import Apache with @ISA
Date: 17:31 on 20 Apr 2005
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=3D/Library/Webserver/Documents/mymod/perl

   PerlModule ModPerl::Registry
   PerlModule mymod::hook

<FilesMatch "\.html$">
=09SetHandler perl-script=20
=09Perlhandler 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 {
=09my $r =3D mymod::Apache->new(shift);

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

1;
________________________

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

use Apache;

use DynaLoader;

use strict;

our @ISA =3D qw(DynaLoader Apache);

sub new {

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

  $r ||=3D Apache->request;

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


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

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

TIA

Angie

(message missing)

[MP2] Import Apache with @ISA
angie ahl 17:31 on 20 Apr 2005

Re: [MP2] Import Apache with @ISA
Geoffrey Young 17:38 on 20 Apr 2005

RC5 really broke some stuff
Foo Ji-Haw 02:22 on 21 Apr 2005

Re: RC5 really broke some stuff
jonathan vanasco 03:07 on 21 Apr 2005

Re: RC5 really broke some stuff
Foo Ji-Haw 04:04 on 21 Apr 2005

Re: RC5 really broke some stuff
Michael J Schout 04:10 on 21 Apr 2005

Re: RC5 really broke some stuff
Randy Kobes 04:11 on 21 Apr 2005

Re: RC5 really broke some stuff
Tom Schindl 08:01 on 22 Apr 2005

Re: RC5 really broke some stuff
Philip M. Gollucci 08:05 on 22 Apr 2005

Re: RC5 really broke some stuff
Adam Kennedy 05:34 on 21 Apr 2005

Re: RC5 really broke some stuff
jonathan vanasco 04:50 on 21 Apr 2005

Re: RC5 really broke some stuff
Perrin Harkins 05:14 on 21 Apr 2005

Re: RC5 really broke some stuff
Foo Ji-Haw 06:17 on 21 Apr 2005

Re: RC5 really broke some stuff
Carl Johnstone 10:02 on 22 Apr 2005

Re: RC5 really broke some stuff
Jie Gao 02:21 on 23 Apr 2005

Re: RC5 really broke some stuff
Fred Moyer 02:42 on 23 Apr 2005

Re: RC5 really broke some stuff
Stas Bekman 04:59 on 23 Apr 2005

Re: RC5 really broke some stuff
Perrin Harkins 16:55 on 24 Apr 2005

Re: RC5 really broke some stuff
Philip M. Gollucci 06:26 on 21 Apr 2005

Re: RC5 really broke some stuff
Foo Ji-Haw 06:38 on 21 Apr 2005

Re: RC5 really broke some stuff
Philip M. Gollucci 07:09 on 21 Apr 2005

Re: RC5 really broke some stuff
jonathan vanasco 12:54 on 21 Apr 2005

Re: RC5 really broke some stuff
Geoffrey Young 11:30 on 21 Apr 2005

Re: RC5 really broke some stuff
John D Groenveld 18:05 on 21 Apr 2005

Re: RC5 really broke some stuff
Adam Kennedy 06:05 on 22 Apr 2005

Re: RC5 really broke some stuff
Philip M. Gollucci 06:26 on 22 Apr 2005

Re: RC5 really broke some stuff
Adam Kennedy 06:28 on 22 Apr 2005

Re: RC5 really broke some stuff
Jonathan Vanasco 16:03 on 25 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52