Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2016-06-29 17:11 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (385 votes). Check out past polls.