in reply to Syntax question when using Class::DBI
Or if you wish to call it directly you need to be a little indirect and take advantage of scalar dereferencing e.gprint $rowobj->can( $cols{id} )->();
Addendum: On a more practical note you can always access the primary key by using the id accessor method, regardless of what is the name of the actual row; as documented.print $rowobj->${ \$cols{id} };
_________
broquaint
|
|---|