Article View: comp.lang.perl.misc
Article #289[HLP] Meaning of 'inf' ???
From: Laurent MARTIN
Date: Thu, 06 Jan 2000 00:00
Date: Thu, 06 Jan 2000 00:00
35 lines
1860 bytes
1860 bytes
Hi !
Could you please take a look at the program below :
my $s1="information";
my $s2="dummy";
printf("[%d]:%s\n",$s1,(($s1>=1000) ? "true" : "false"));
printf("[%d]:%s\n",$s2,(($s2>=1000) ? "true" : "false"));
I know, this program seems silly to you but anyway it should print the
line "[0]:false" twice.
In fact I've tried it on several PCs running Linux. On one of them (Perl
version 5.005_03 under Linux 2.2.12), the first line is "[-1]:true"...
Does someone know the reason why ???
I think this has something to see with the fact that "information"
starts with "inf" : if I change "information" to "ingormation", for
example, the 1st line changes to "[0]:false".
Is "inf" a special keyword or something like that ???
Thank you for your help !
PS : As I'm not coming here often, could you please also reply at my
e-mail address. Thx.
--
____________________________________
Laurent MARTIN - G.I.D.E
____________________________________
Tel. : +33 (0)2.40.89.92.83
Fax : +33 (0)2.40.89.92.81
e-mail : laurent@gide.net
GIDE : info@gide.net
____________________________________
Technical Details
Message-ID:
<3874AF27.15D98503@gide.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 112333,cd2e8bd3f7e1a578,start X-Google-Attributes: gid112333,public X-Google-Thread: fa0ae,cd2e8bd3f7e1a578,start X-Google-Attributes: gidfa0ae,public From: Laurent MARTIN <laurent@gide.net> Subject: [HLP] Meaning of 'inf' ??? Date: 2000/01/06 Message-ID: <3874AF27.15D98503@gide.net> X-Deja-AN: 569115821 Content-Transfer-Encoding: 7bit X-Accept-Language: fr Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@isdnet.net X-Trace: news6.isdnet.net 947171041 50891 194.149.167.18 (6 Jan 2000 15:04:01 GMT) Organization: G.I.D.E Mime-Version: 1.0 NNTP-Posting-Date: 6 Jan 2000 15:04:01 GMT Newsgroups: comp.lang.perl.misc,fr.comp.lang.perl