> ACK! void use of map!
>
> change it! change it!
> $max=0;
> foreach (@listofvalues) {$max=$_ if($_>$max)}


Huh?  Is that "void" or "avoid"?  What's wrong with map?

- B

__________________


> -----Original Message-----
> From: bob ackerman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 5:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: max/min
>
>
>
> i like:
> $max=0;
> map {$max=$_ if($_>$max)} @listofvalues;
>

----------------------------------------------------------------------------

--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to