perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <hed...@scriptdolphin.org>
Subject Re: Manipulating @INC and tremendous blank page
Date Fri, 13 Feb 2009 18:14:52 GMT


On Fri, 13 Feb 2009, shiriru0111@hotmail.com wrote:
> - I was manipulating @INC in a BEGIN block but wasn't working.
> The main app index.pl is very basic:
>
> use strict;
> use warnings;
>
> use App::Core Run => 'App::Engine';
>
> I was doing the manip of @INC in the App::Engine module
> within a BEGIN block but then move it to the import function of App::Engine, to
> no unvail.

Would this work in your CGI instead of fiddling with @INC:

 use FindBin;
 use lib "$FindBin::Bin/../lib";

or something like that?

Mark

Mime
View raw message