Ok... can someone tell my why this won't compile?
sub {
my $cat;
my ($cat) = $DB->table('Category')->select(['Full_Name'],{ ID => $category_id})->fetchrow_array;
return $cat;
}
Probably something really basic, I am sure
I am just trying to return the corresponding Full_Name for the category_id I find in GT::Dump on browser_category.html. I just thought this may be simpler than the solution at:http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=195650.
Code:
sub {
my $cat;
my ($cat) = $DB->table('Category')->select(['Full_Name'],{ ID => $category_id})->fetchrow_array;
return $cat;
}
Probably something really basic, I am sure

I am just trying to return the corresponding Full_Name for the category_id I find in GT::Dump on browser_category.html. I just thought this may be simpler than the solution at:http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=195650.