Hi, On Fri, 9 Sep 2011 11:28:19 +0200 Paul Johnson <p...@pjcj.net> wrote:
> On Fri, Sep 09, 2011 at 12:11:04PM +0300, Shlomi Fish wrote: > > > next if (!length($dist) or !length($cell) or !length($sect)); > > > > There's a better way using List::MoreUtils : > > For some definition of "better". > Well, it is shorter and has less duplicate code/functionality. It also short-circuits like the Perl "or" and "and" operators. > See also De Morgan. > My notall { ... } refactoring makes use of this. See: http://en.wikipedia.org/wiki/De_Morgan%27s_laws Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/ Judaism: God is all the shit, all the non‐shit and all the intermediate demi‐shits in between. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/