Gossamer Forum
Home : General : Perl Programming :

@INC bummer!

Quote Reply
@INC bummer!
Why this isn't recognized:

In the Startup.pl

# Block robots agents.
use lib '/usr/local/apache/lib/perl';
use Apache::BlockAgent ();

Now BlockAgent.pm is at -

/usr/local/apache/lib/perl/BlockAgent.pm

But -

[error] Can't locate Apache/BlockAgent.pm in @INC (@INC contains: /usr/local/apache/lib/perl ...

Etc.
Quote Reply
Re: [BLOOD] @INC bummer! In reply to
Notice how you are missing the Apache directoryCrazy
Quote Reply
Re: [BLOOD] @INC bummer! In reply to
You're trying to use Apache::BlockAgent (); which perl translates to Apache/BlockAgent.pm. Create a directory named Apache in your lib and place BlockAgent.pm inside of it.

Regards,
Charlie
Quote Reply
Re: [Chaz] @INC bummer! In reply to
Blush

Thanks!

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] @INC bummer! In reply to
You bet!
Quote Reply
Re: [Paul] @INC bummer! In reply to
Huh...That was a waste of time anyway. The Apache::BlockAgent from the mod_perl site is chock full of bugs. If anyone know of a good working copy im all ears!

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] @INC bummer! In reply to
Just for the record I found a working one -

http://modperl.com:9000/

--------------------------------
Privacy Software