DB<126> x $dbh
0 DBI::db=HASH(0x11e0bd0)
empty hash
It seems I can’t dump its content no matter how many stuff I assign to it by $dbh->{$a} = $v
why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DBI handles are an example of inside out objects; they squirrel away their attributes where you in theory can’t get them except through their interface. (Unlike many newer implementations of inside out objects, they also have a tie interface that allows you to get and set attributes as if they were blessed hashes, but in a controlled way.)