> On Mar 28, 2017, at 1:58 PM, Uri Guttman wrote:
>
> the only difference i see is using defined in the 2nd line.
Thanks, Uri. Yeah, I got overly aggressive there.
> also i would test $field ne 'categories' first as if that is true why even
> test $out->{$field}? it is a slight optimi
Hi!
First of all, using unless with complex logic inside the condition,
especially using negatives (unless not...) is much harder to read and
understand than using if.
See http://stackoverflow.com/a/3048787 and of course see original adwise
from Conway's perl best practices
http://shop.orei
On 03/28/2017 04:46 PM, SSC_perl wrote:
I could use another set of eyes on this. Could someone please double
check these two sets of conditions and let me know if the first is equivalent
to the second? I believe they are, but I don’t want to take any chances.
# Both of these should