adding attributes to a database handle

[email protected] (E R)
Newsgroups perl.dbi.users
Message-ID <[email protected]>
Two questions:

1. Is it possible to add/store "user defined" attributes in a database handle.

I'd like to do something like this:

my $dbh = DBI->connect(...);

$dbh->{important_info} = ...;

...

print "the important info was: ", $dbh->{important_info}, "\n";

2. Is there anything preventing the sub-classing of database handles
(i.e. reblessing into a sub-class after creation)?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.