List Info

Thread: (no subject)




(no subject)
country flaguser name
Germany
2007-03-31 09:25:58
Sorry to have asked,
I found what I needed at
http://search.cpa
n.org/~jrobinson/DBIx-Class-0.07005/lib/DBIx/Class/ResultSet
.pm#find_or_create

Here, I'll give myself a combined STFW&&RTFM...

Thanks, Jack


_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: (no subject)
user name
2007-03-31 09:55:16
On Sat, Mar 31, 2007 at 04:25:58PM +0200, Jack Lauritsen
wrote:
> Sorry to have asked,
> I found what I needed at
> http://search.cpa
n.org/~jrobinson/DBIx-Class-0.07005/lib/DBIx/Class/ResultSet
.pm#find_or_create
> 
> Here, I'll give myself a combined
STFW&&RTFM...
Surely you'd be better off with STFW||RTFM. That way you
will only
evaluate the latter if the former fails, rather than only if
it succeeds
as in your suggestion.

Mind you, if you're considering migrating to Perl 6, you
might consider
STFW//RTFM, which returns the value of the former if it is
defined; the
value of the latter o/w.

-- 
"And I see losing love is like a  window in your heart:
 everybody sees 
 you're  blown  apart;  everybody  sees  the  wind  blow  in
Graceland."
 -- Paul Simon, 1986
http://surreal.istic.org/      The Answer of the Oracle Is Always Death.

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )