On Wed, May 22, 2002 at 01:04:53PM -0600, Scott Wiersdorf wrote:
> My shortest try is this (10 characters w/o whitespace):
> 
>     if( $a%2 .. $a-- ) {
>         do_something();
>         ...
>     }

Ok, this is also 10 characters:

if( $a=~s/.+// ) {
    ...
}

and has the (strange) benefit of only letting the empty string be
false (which is ok).

Scott
-- 
Scott Wiersdorf
[EMAIL PROTECTED]

Reply via email to