Hi all...
I have been really stumped with a problem that I am having. I am using Apache 2.0.46 with mod_perl 1.99_09 installed as DSO. I have been able to utilize different libraries from my main script. However, I started to try to utilize a package that I built which requires a library that the main script also requires I get undefined function calls.
main script 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";
}
Package being used require block:
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;
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.
If anyone can shed some light on this, maybe I will changed my mind about dropping the mod_perl...however, I am looking to utilize the speed of mod_perl. Thats my driving force for using it...otherwise, I have been just hitting all kind of problems.
Or if this has been covered previously...which i didn't seem to find...please point me to that article.
Thanks
Matt
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.