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 be equivalent.
$out->{$field} =~ s/``/\r/g unless (not $out->{$field} or $field eq 
'categories');
$out->{$field} =~ s/``/\r/g if (defined $out->{$field} && $field ne 
'categories');


# Both of these should be equivalent.
… unless (not defined ($main::global->{form}->{$field}) || $field =~ 
m/\b(hide|date|lastmod)\b/);
… if (defined $main::global->{form}->{$field} && $field !~ 
m/\b(hide|date|lastmod)\b/n);

        The first of each set is a double negative, so I’m wanting to rewrite 
them to be easier to read.

Thanks,
Frank
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to