See the example I posted here.
In reply to Re^3: Using a Fetchrow with LWP by 1nickt in thread Using a Fetchrow with LWP by justin423