in reply to Syntax question when using Class::DBI
That's perfectly valid syntax (although more paranoid code would check with UNIVERSAL::can before calling arbitrary methods).
freebie:~ 973> cat fooble + 19:55:47 my $columnname = 'id'; print $rowobj->$columnname; freebie:~ 974> perl -wc fooble + 19:55:48 Name "main::rowobj" used only once: possible typo at fooble line 2. fooble syntax OK
Your problem's elsewhere.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax question when using Class::DBI
by freddo411 (Chaplain) on Dec 09, 2004 at 01:28 UTC | |
by Corion (Patriarch) on Dec 09, 2004 at 08:18 UTC |