Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!mhres!squirrel!pronto!jv From: jv@mh.nl (Johan Vromans) Newsgroups: comp.lang.perl Subject: Re: Arithmetic functions Message-ID: <1991Feb26.080757.21645@pronto.mh.nl> Date: 26 Feb 91 08:07:57 GMT References: <1991Feb20.113935.14427@pronto.mh.nl> <2069019@bfmny0.BFM.COM> <1991Feb23.001155.3630@convex.com> Sender: jv@pronto.mh.nl (Johan Vromans) Reply-To: Johan Vromans Distribution: comp Organization: Multihouse Automation, the Netherlands Lines: 24 In-Reply-To: tchrist@convex.com's message of 23 Feb 91 00:11:55 GMT In article <1991Feb23.001155.3630@convex.com> tchrist@convex.com (Tom Christiansen) writes: > What's wrong with: > > $s = (sort(("def","ghi","abc","jkl")))[0]; ..etc.. Nothing wrong, except that you have to spell it out (or define them) over and over and over... And, of course: > Efficient numeric operations in perl? Precisely. I don't even think of using sort to get the max or min of two numbers. Johan -- Johan Vromans jv@mh.nl via internet backbones Multihouse Automatisering bv uucp: ..!{uunet,hp4nl}!mh.nl!jv Doesburgweg 7, 2803 PL Gouda, The Netherlands phone/fax: +31 1820 62911/62500 ------------------------ "Arms are made for hugging" -------------------------