[Dbix-class] select as, count

Brandon Black blblack at gmail.com
Mon Jun 26 20:55:24 CEST 2006


On 6/26/06, A. Pagaltzis <pagaltzis at gmx.de> wrote:
> * Sarah Berry <berry.sarah at gmail.com> [2006-06-26 20:35]:
> >         my @conds = {
> >         my @cnt = {
>
> Are you sure an array with a single element containing an
> anonymous hash ref is what you meant to use?
>

It may be bad form, but it does in fact work :)

my @foo = { hashkey => 'hashval' };
bar(@foo);

is equivalent to:

my $foo = { hashkey => 'hashval' };
bar($foo);

-- Brandon



More information about the Dbix-class mailing list