Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: (mysql) failing to locate object method

by Gilimanjaro (Hermit)
on Aug 03, 2004 at 11:54 UTC ( [id://379588]=note: print w/replies, xml ) Need Help??


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....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found