Perl Help

Associate
Joined
9 Jul 2004
Posts
1,132
Location
Folding for OcUK
Hi.

Ive got a simple Perl script that supposed to take information from an xml file and put it in a mysql database.

When I run the script tho i get this error:

Code:
Can't locate loadable object for module DBI in @INC
<@INC contains: D:/Perl/lib D:/Perl/site/lib .> at D:/Perl/lib/DBI.pm line 259
BEGIN failed--compilation aborted at D:/Perl/lib/DBI.pm line 259.
Compilation failed in require at D:\WWW\MINE\team.pl line 2.
BEGIN failed--compilation aborted at D:\WWW\MINE\team.pl line2.

I've followed the instructions here for installing on a windows machine with the ActiveState port, so I'm assuming that the module is installed.

Can anone help?
 
The DBI modules are not installed as standard, its been a while since I did this but its something like this :-

You need to find the DBI and the relevant DBD module for MySQL. Have A look on CPAN - theres tons of info there.

You then must install them by typin something like "ppm install xxx"
 
Last edited:
Yep. I've just realised that I wasn't installing the module and driver properly. Now that ive got it sorted ive come up with another error:

Code:
Undefined subroutine &main::handle_start called at D:/Perl/site/lib/XML/Parser/Expat.pm line 469.

Any ideas?

Cheers
 
Back
Top Bottom