[Dbix-class] select as, count

Sarah Berry berry.sarah at gmail.com
Mon Jun 26 21:22:39 CEST 2006


So instead, I would want to do something like this?
  my %conds = {
  my %cnt = {

On 6/26/06, Brandon Black <blblack at gmail.com> wrote:
>
> 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
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/dbix-class@lists.rawmode.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060626/6c89b03b/attachment.htm 


More information about the Dbix-class mailing list