in reply to Syntax question when using Class::DBI

This syntax does work in 5.005_03 - but you may have to add parenthesis to make it clear that you are calling a method:

my $columnname = 'id'; print $rowobj->$columnname();

Replies are listed 'Best First'.
Re^2: Syntax question when using Class::DBI
by Your Mother (Archbishop) on Dec 09, 2004 at 03:17 UTC

    Thank you. I had this problem at work last week where I don't get to pick the perl version :) and resorted to no strict 'refs'; &{etc...

Re^2: Syntax question when using Class::DBI
by fglock (Vicar) on Dec 14, 2004 at 21:10 UTC

    Just for reference - The ever-growing reference table of backwards 5.005_03 compatibility: 289351