Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Global symbol "$DBI" requires explicit package name

by NateTut (Deacon)
on Dec 07, 2010 at 18:58 UTC ( #875861=note: print w/replies, xml ) Need Help??

in reply to Re: Global symbol "$DBI" requires explicit package name
in thread Global symbol "$DBI" requires explicit package name

I swear on my mother's grave (well she's not dead yet, but you get the picture) that I have been using this code for years without a problem. Did something change in DBI?

Replies are listed 'Best First'.
Re^3: Global symbol "$DBI" requires explicit package name
by ikegami (Pope) on Dec 07, 2010 at 22:23 UTC

    This has nothing to do with DBI. You were using a variable you didn't declare ($DBI), and you asked to make such things errors by using (use strict;).

    While $DBI::errstr is also a variable you didn't declare, use strict; forgives qualified ("::") package variables.

    Although it's not documented, DBI->errstr might work. Maybe that's what you were using.

      You missed the update where he says he figured it out
        Thanks, but I didn't. I thought the post to which I replied was a followup question.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875861]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-06-28 02:22 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (619 votes). Check out past polls.