Extracting information back out of a DBH

Dave Hodgkinson davehodg at gmail.com
Tue Feb 10 08:44:26 GMT 2009


On 10 Feb 2009, at 00:02, Simon Wistow wrote:

> On Mon, Feb 09, 2009 at 10:24:03PM +0000, peter at dragonstaff.com said:
>> use DBI;
>> my $dbh = DBI->connect('dbi:mysql:dbname', 'user', 'pass');
>> print Dumper( tied(%$dbh) );
>
> Ahah, the tied was just the ticket.



Perl question: what does tied do and why is it used in this situation?

-- 
Dave Hodgkinson                                MSN: davehodg at hotmail.com
Site: http://www.davehodgkinson.com                  UK: +44 7768 490620
Blog: http://davehodg.blogspot.com
Photos: http://www.flickr.com/photos/davehodg









More information about the london.pm mailing list