[Dbix-class] Re: Return value of DBIx::Class::ResultSet::find()
A. Pagaltzis
pagaltzis at gmx.de
Mon May 14 09:24:13 GMT 2007
* Bernhard Graf <dbic3 at augensalat.de> [2007-05-13 22:30]:
> While the difference between empty list and undef is usually
> not important, it can lead to confusing results if find() is
> called as subroutine argument:
>
> do_something($alpha, $rs->find($id), $omega);
>
> meaning do_something() is called with three arguments if find()
> succeeds and two arguments if it fails.
do_something($alpha, scalar $rs->find($id), $omega);
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Dbix-class
mailing list