On Mon, 3 Dec 2001 13:17:11 -0500 (EST), [EMAIL PROTECTED] (Jeff 'Japhy'
Pinyan) wrote:

> I think the golfers among us should pool our efforts (after the rowdy,
> cut-throat competition ends, of course!) to amass a list of common -- or
> would that be uncommon? -- golfing techniques.  While participating in a
> round on PerlMonks.org, I used
> 
>   rand>$f?Y:X
> 
> instead of the error-producing
> 
>   rand<$f?X:Y
> 
> which must be rewritten as
> 
>   rand()<$f?X:Y

Or similarly

    50>length

rather than

    length()<=50

or even

    length($_)<=50

Cheers,
Philip    

Reply via email to