[Dbix-class] Re: Return value of DBIx::Class::ResultSet::find()
Ash Berlin
ash_cpan at firemirror.com
Mon May 14 21:52:41 GMT 2007
A. Pagaltzis wrote:
> * Bernhard Graf <dbic3 at augensalat.de> [2007-05-14 10:50]:
>> But my email was not about a workaround for a probably common
>> pitfall. Or do you call scalar() on each subroutine in a
>> subroutine argument list by default?
>
> Depends on the interface of the functions in question. But yes,
> absolutely: if ambiguity can arise, I always enforce the context
> I need.
>
> Anyway, right now I have no opinion on what `find` should return.
>
> Regards,
My view is undef, since when it succeeds it returns a Row object, I
would have thought that it would return an undef when it cant find
anything - seems the right way to me.
-ash
More information about the Dbix-class
mailing list