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:
Simon Cozens
Date:
January 31, 2001 12:21
Subject:
Re: [PATCH] pod/perlclib.pod - Replacements for C library functions
Message ID:
20010131202118.A32407@pembro26.pmb.ox.ac.uk
On Wed, Jan 31, 2001 at 03:18:20PM -0500, Ronald J Kimball wrote:
> 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.

Aha, so I meant it, really. I didn't make a mistake after all. Good, I'm
glad we've cleared that up.

-- 
I will not suffer fools gladly, but I will gladly make fools suffer. -Bimmler

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