>>>>> "Ovid" == Ovid  <[EMAIL PROTECTED]> writes:

Ovid> Ack!  A 'do nothing' elsif branch?  Much cleaner:

Nope, that changed the meaning.  If I provide a value in updates,
it *always* takes precedence.  This let me do things like:

   my $foo = Foo->new(...)->save;
   my $bar = $existing_bar->clone(foo_id => $foo->id);

where foo_id was one of the primary keys.  Yes, you can eliminate
the empty branch with a "not" on the condition, but I hate "not"
in conditions. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to