> -----Original Message-----
> From: Jim Sproull [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 06, 2000 2:35 PM
> To: Geoffrey Young
> Subject: RE: NEWBIE: appending to page content
>
>
>
>
> > -----Original Message-----
> > From: Geoffrey Young [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 06, 2000 2:30 PM
> > To: 'Jim Sproull'
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: NEWBIE: appending to page content
> >
> > >
> > > Hi again Geoff. Thanks for the quick answer. I actually
> > > tried adding
> > >
> > > return DECLINED if
> > > $r->content_type ne "text/html";
> >
> > well this is essentially what Apache::SimpleReplace does - and I
> > just tested
> > it on a directory that has +Indexes and it works just fine:
> content-type
> > httpd/unix-directory.
> >
> > make sure you have PerlWarn On in your httpd.conf and are
> using strict at
> > the top of your module, just in case it's a coding problem ;)
> >
> > > > [SNIP]
>
> heh, ok, this is weird. I used strict (it wasn't there
> before), fixed
> this line:
>
> $rqh = Apache::File->new($r->filename)
> || return SERVER_ERROR;
>
> (forgot the 'my') and now it works. Though, I'm not sure
as you get into mod_perl, you'll see that 'use strict' and 'my' are
essentially required.
besides the eagle book, I would suggest that you also use
perl.apache.org/guide as a reference, as well as the many Apache:: modules
on CPAN
> why this would
> cause a read error, but you never know. Anyway, thanks again
> for your help!
> You've been more than patient with me. :)
no problem - enjoy the reading :)
--Geoff
>
> Jim
> [EMAIL PROTECTED]
>