Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: Artitmetic functions Message-ID: <124122@uunet.UU.NET> Date: 26 Feb 91 02:54:45 GMT References: <1991Feb20.113935.14427@pronto.mh.nl> Distribution: comp Organization: UUNET Communications Services, Falls Church, VA Lines: 36 In <1991Feb20.113935.14427@pronto.mh.nl> Johan Vromans writes: >I'd like to suggest adding the following aritmetic functions to perl. > > min(LIST) - numerically lowest of LIST > max(LIST) - numerically highest of LIST > round(EXPR[,precision]) > - EXPR rounded to precision decimal > places (default integer precision) > ceil(EXPR) - ceiling value of EXPR > floor(EXPR) - floor value of EXPR (identical to 'int') > >Reasonable? Ahem. Now if Larry would allow functions to follow the same rules as variable names, we could have: &< min &> max &0 round (:-) &_ floor &^ ceiling &! factorial And of course, now that we have control character variables: &^d FILEHANDLE can replace close &^c send interrupt to process &^z replaces sleep Like I said, how hard could it possibly be to parse '&& && &&' :-) All of your suggestions can be implemented trivially by any user, so there is really no reason for Larry to do it. -- [rbj@uunet 1] stty sane unknown mode: sane