Re: [CDBI] search()->first

[prev] [thread] [next] [Date index for 2006/02/27]

From: Cees Hek
Subject: Re: [CDBI] search()->first
Date: 21:22 on 27 Feb 2006
On 2/27/06, juanbro@xxxxx.xxx <juanbro@xxxxx.xxx> wrote:
> In the CDBI docs I see an example like this:
>
> my $artist3 =3D Music::Artist->search( name =3D> 'Polysics' )->first;
>
> but no other mention of 'first'. What's this?

See the docs for Class::DBI::Iterator

Calling ->search in scalar context returns an interator object, and
then you call ->first on that iterator object.

Cheers,

Cees

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] search()->first
juanbro 21:15 on 27 Feb 2006

Re: [CDBI] search()->first
Cees Hek 21:22 on 27 Feb 2006

Re: [CDBI] search()->first
Matt S Trout 21:27 on 27 Feb 2006

Generated at 20:45 on 01 Mar 2006 by mariachi v0.52