Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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?


Comment on Re^2: Global symbol "$DBI" requires explicit package name
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2014-09-19 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (140 votes), past polls