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.
----
Steve Sapovits
Global Sports Interactive
Work Email: [EMAIL PROTECTED]
Home Email: [EMAIL PROTECTED]
Work Phone: 610-491-7087
Cell: 610-574-7706
Pager: 877-239-4003
> -----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.
>
> Thanks,
> Steve
>