On Wed, 13 Aug 2003, Kenneth Graves wrote:

> This should work:
>
>          if (length($value) == 0) {
>              $count += 1;
>          }

Is there a reason you're not using a simple

    $count++

that I'm not thinking of?

For that matter, <golf>

    $count++ if ( length( $value ) == 0 );

</golf> is a bit shorter, and IMO just as readable. I don't always like
the "foo if bar" idiom, but this seems like a good situation for it.



-- 
Chris Devers [EMAIL PROTECTED]
http://devers.homeip.net:8080/

look'n'feel, n. [Look and feel]
The ill-defined, superficial but legally protectable property of a user
interface, esp. where the underlying application has been stolen from
others.

    -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to