in reply to Re^2: (mysql) failing to locate object method
in thread (mysql) failing to locate object method

This almost certainly means something is not right with your DBI installation... Try adding
print "$_\n" for grep /^[a-z]/, keys %DBI::;
after your 'use DBI;'. This single line will show you all symbols (including methods) in your DBI package after you've used it. If this list contains 'connect' then there's something wrong with your perl. If it doesn't, then something is wrong with your DBI. You could try reinstalling your DBI package maybe...

Replies are listed 'Best First'.
Re^4: (mysql) failing to locate object method
by sriraj (Initiate) on Aug 03, 2004 at 12:16 UTC
    hi Gilimanjaro

    thank u very much for giving the immediate response i tried to

    run the program as per ur instructions and i didnt get any output

    This is the program

    ====================

    use strict;

    use DBI;

    print "$_\n" for grep /^a-z/, keys %DBI::;

    output of the program is

    ========================

    C:\ram>perl mysqltest.pl

    C:\ram>

    can i know what could be the error, if it is dbi installing problem

    how can i uninstall the dbi package
      This means DBI is not loaded properly, so it's probably not installed properly. I don't know much about ppm, but what I can find online seems to indicate you need to:
      ppm remove DBI ppm install DBI
      I hope it helps....