A challenge to explain the strange results (under linux)

"Zhu Shanshan" <[email protected]> Thu, 12 Jun 2008 11:59:44 +0800
Newsgroups gmane.comp.lang.perl.golf
Message-ID <[email protected]>
------=_NextPart_000_0001_01C8CC83.D1ED6FC0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I used perl "v5.8.5 built for i386-linux-thread-multi".

 

My data:

##################### File:color.txt

chartreuse

deeppink

goldenrod

lightblue

dodgerblue

darkgoldenrod

 

My scripts:

##################### File: test.pl

use strict;

use warnings;

open IN,"color.txt" or die;

while (<IN>){

         chomp;

         print "$_";

}

close IN;

 

Results under linux platform(Nothing):

"Linux compome 2.6.12-1.1381_FC3smp #1 SMP Fri Oct 21 04:03:26 EDT 2005 i686
i686 i386 GNU/Linux"  RedHat

"Linux biome 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux"   RedHat

"Linux hanlab 2.6.16.46-0.12-smp #1 SMP Thu May 17 14:00:09 UTC 2007 i686
i686 i386 GNU/Linux"  OpenSUSE

##################### command: perl test.pl

 

 

Results under Microsoft Windows XP (in my expectation):

##################### command: d:\soft\bin\perl.exe test.pl

Chartreusedeeppinkgoldenrodlightbluedodgerbluedarkgoldenrod

 

 

It's not really a Perl challenge. But can anyone give me some help or
suggestions?

Thanks in advance

 

Shanshan Zhu


------=_NextPart_000_0001_01C8CC83.D1ED6FC0--