[CDBI] search()->first

Cees Hek ceeshek at gmail.com
Mon Feb 27 21:22:13 GMT 2006

On 2/27/06, juanbro at pivot.net <juanbro at pivot.net> wrote:
> In the CDBI docs I see an example like this:
> my $artist3 = Music::Artist->search( name => '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.



More information about the ClassDBI mailing list