using $sth->fetchrow_hashref() will get you what you're looking for... a nicely formatted hashref (one row) with column names as keys. Please note that this is not the optimal way for retrieving data from the DBI speedwise... there have been discussions about this, most notably:
Read up on it and you will learn alot. I know I did.