A. Pagaltzis wrote: > * Bernhard Graf <[EMAIL PROTECTED]> [2007-05-13 22:30]:
> > 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); I know and once I found the source of my problem I fixed it exactly this way. 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? -- Bernhard Graf _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
