use XML::Parser in a pg/lib/ .pm file | topic started 7/10/2006; 6:11:16 PM last post 7/10/2006; 7:13:25 PM |
|
Michael Gage - Re: use XML::Parser in a pg/lib/ .pm file 7/10/2006; 7:13:25 PM (reads: 314, responses: 0) |
So from what I've gathered, it looks like "use" doesn't work because of
the way the modules are loaded. Is this correct? If so, I was wondering
if there was another way to load XML::Parser or a better way to
structure this process to get around it.
I believe you have the correct diagnosis of the problem. A similar thing takes place with Matrix.pm and RealMatrix1.pm; Try adding [qw(XML::Parser)] to the pg modules to load in global.conf. (Don't forget to restart the server.) This is likely to solve your original problem. It also makes the subroutines in XML::Parser generally available. Conceivably this might become security concern, but I haven't thought closely about this. I would worry about this later. If so there are security risks some modules such as Safe::Hole and Safe::World which might be of help (they are on CPAN, but I haven't worked with them.) Hope this helps. -- Mike Gage |