[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Unidentified subject!



Newsgroups: linux.debian.user
Path: not-for-mail
From: Olaf Titz <olaf@bigred.inka.de>
Subject: Re: dpkg-ftp troubles
Message-ID: <ds2as2.hqq@bigred.inka.de>
Date: 27 May 1996 13:33:38 +0100
References: <[🔎] 199605240628.XAA22079@aplysia.iway.aimnet.com>
 <[🔎] m0uN3Vq-0006wQC@frodo.nx.cpsc.ucalgary.ca>
Organization: private Linux site, southern Germany
Lines: 18

This is really a perl issue, but...

Andy Guy  <awpguy@acs.ucalgary.ca> wrote:
> Changing <=> to cmp changes the ordering I think.  My newest

<=> is a numerical compare, cmp a string compare. Even if the
variables are stripped to digits only, they still can yield different
results if any of the arguments contain leading zeroes, e.g. "1" vs.
"02".

So it's important exactly what you want to compare.

olaf
-- 
___        Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de       ____
__ o           <URL:http://www.inka.de/~bigred/>     <IRC:praetorius>
__/<_              >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____


Reply to: