in reply to Syntax question when using Class::DBI

That should work, but you can also use the get() accessor:
$rowobj->get($columnname)