develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH] pod/perlclib.pod - Replacements for C library functions

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
January 31, 2001 12:18
Subject:
Re: [PATCH] pod/perlclib.pod - Replacements for C library functions
Message ID:
20010131151820.D139068@linguist.thayer.dartmouth.edu
On Wed, Jan 31, 2001 at 09:13:04PM +0100, Philip Newton wrote:
> On 31 Jan 01, at 16:31, Simon Cozens wrote:
> 
> >     strcmp(s1, s2)              strLE(s1, s2) / strEQ(s1, s2) / strGT(s1,s2)
> 
> Is there really the asymmetry LE vs GT? Not LE vs GE or LT vs GT? Why?

With EQ, LE, GT you can do all comparisons with a single call, just by
putting the arguments in the right order.  With EQ, LT, GT or EQ, LE, GE,
some comparisons would require two calls.

Ronald

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About