mhorner has asked for the wisdom of the Perl Monks concerning the following question:
Package being used require block:BEGIN { use lib "/apache/wiredata/cgi-bin/mod_perl/control_center/library/ +"; use lib "/srccode/wiredata_lib/"; use lib "/apache/wiredata/cgi-bin/mod_perl/Viewer"; use CGI (); use Session (); use IO::ScalarArray (); use strict; use Apache::DBI (); use ReportGenerator(); require "wiredata_mysql_lib.pl"; # library in question require "db_ops.pl"; require "menuDisplay.pl"; require "table_browser.pl"; require "OptionDisplay.pl"; require "Viewer.pl"; }
I have tried all kinds of combinations to try to remove the conflicts. I have been getting the conflicts on both sides. Once I get the ReportGenerator package to stop complaining, the main script then has the same error. I am completely stumped. I have inspected the @INC and %INC to determine if the path and file occurs in both. I have noticed that I am getting a little inconsistency in the paths in @INC.BEGIN { use strict; use Data::Dumper; use Tie::IxHash; use Record; use lib qw(/apache/wiredata_lib); require "report_gen_lib.pl"; require "wiredata_mysql_lib.pl"; # library in question } package ReportGenerator;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: requires in mod_perl
by perrin (Chancellor) on Sep 04, 2003 at 17:49 UTC | |
|
Re: requires in mod_perl
by mhorner (Initiate) on Sep 04, 2003 at 22:01 UTC | |
|
Re: requires in mod_perl
by Anonymous Monk on Sep 04, 2003 at 17:41 UTC | |
by Anonymous Monk on Sep 05, 2003 at 12:25 UTC | |
|
Re: requires in mod_perl
by mhorner (Initiate) on Sep 05, 2003 at 16:01 UTC | |
by Anonymous Monk on Sep 05, 2003 at 18:45 UTC |