in reply to Getting HASHES out of Class::DBI

Born from Re: CGI::Formbuilder and Class::DBI, here it is, hashy :)
sub hashy { my $obj = shift; return { map { my $g = $obj->get($_); $g = hashy($g) if ref $g; ( $_ => $g ); } $obj->columns }; } __END__ $VAR1 = { 'artist' => { 'artistid' => '1', 'name' => 'U2' }, 'cdid' => '1', 'title' => 'October', 'year' => '1981' };

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.