Hello spadacciniweb,
You haven’t given us enough information.
From the error, it appears that $agent is an instance of DBIx::Class::ResultSet. However, the methods get_columns and profilo are not listed in the documentation for that module. The closest to the first is the get_column method (note: singular, not plural), and there is nothing corresponding to profilo. So, what is $agent? Likewise, in the line:
my $agent = master->resultset('Agent')->search({
what is master? From the syntax, it should be a reference of some kind, but references aren’t usually represented as barewords. Are you running under use strict;?
Please see How do I post a question effectively? and The SSCCE.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: DBIx::Class problem (probably)
by Athanasius
in thread DBIx::Class problem (probably)
by spadacciniweb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |