Re: [CDBI] search()->first
[prev]
[thread]
[next]
[Date index for 2006/02/27]
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
 |
 |
Re: [CDBI] search()->first
Cees Hek 21:22 on 27 Feb 2006
|