print $rowobj->id; #### my $columnname = 'id'; print $rowobj->$columnname; ####