Switching to DBI instead of Oraperl might do the trick.  Oraperl.pm exports
quite a bit to the invoking context and that is just asking for mutual
interference.
--
Mac :})
** I normally forward private database questions to the DBI mail lists. **
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.
----- Original Message -----
From: "Steve Sapovits" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 11:41 AM
Subject: RE: Expat.pm & DBI.pm incompatible? Undefined subroutine &main: !?


> I use DBI and XML::Parser together on Solaris.  Perl 5.00503.
> XML::Parser is a subclass of XML::Parser::Expat, which is what
> you're talking about I guess?  That's the only Expat module I've
> seen at CPAN.
>
> If you have the code I can take a look and see what happens in
> this environment.
>
> I don't use Oraperl though -- I use DBI and DBD::Oracle.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, March 08, 2001 2:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Expat.pm & DBI.pm incompatible? Undefined subroutine &main:
> > !?
> >
> > Anybody out there have experience using both Expat.pm and DBI.pm?  I
have
> > perl 5
> > scripts that can parse XML documents and scripts that can access Oracle,
> > but not
> > both!
> >
> > I'm using perl 5.0 patchlevel 4 subversion 4 under aix 4.3.3.
> >
> > When I "use" Oraperl.pm in a script already successfully parsing XML
> > files, I
> > get:
> >
> > Undefined subroutine &main: called at Parser.pm line 185.  (Parser.pm is
> > just a
> > wrapper around Expat.pm, and line 185 is an eval calling the parse sub).
> >
> > It's not even telling me what !@#$ subroutine is undefined!
> >
> > "use"ing Oraperl has DBI.pm installing the DBD::Oracle driver, and
that's
> > successful, but later when executing a call to the parse subroutine in
> > Expat.pm
> > I get this error.  I never actually do anything with the Oraperl.  This
> > same
> > line works fine if I don't "use" Oraperl, but I need to put the results
of
> > the
> > parse into an oracle 'base.


Reply via email to