Search   Feed   Browse   Add
Feed items 1 - 5 of 5 for June 2008

perl.golf

...

scrabble word scorer by Jasper - June 17, 2008

Hi, y&39;all,Can anyone beat 55 on this I don&39;t know if we ever did it as achallenge. Should I search for it in the book-- Jasper
http://www.nntp.perl.org/group/perl.golf/2008/06/msg2506.html

Re: : A challenge to explain the strange results (under linux) by Daniel Tiefnig - June 12, 2008

Zhu Shanshan wrote:> As you said, when I substituted "srn$" with "chomp", it did> work. After looking up the explanation of "chomp" in perldoc, I found> "chomp", which I always used to remove the newline previous, removes> any trailing string that corresponds to the current value of "$".Hej,JFTR, you may also want to have a look at "perldoc perlport". The firstissue discussed is "Newlines".lg,daniel
http://www.nntp.perl.org/group/perl.golf/2008/06/msg2505.html

: A challenge to explain the strange results (under linux) by Zhu Shanshan - June 11, 2008

Thanks.As you said, when I substituted "srn$" with "chomp", it did work. Afterlooking up the explanation of "chomp" in perldoc, I found "chomp", which Ialways used to remove the newline previous, removes any trailing string thatcorresponds to the current value of "$". And this time, it removed "n" forme. I&39;m really puzzled by this phenomena, because I always work with"chomp". I guessed the problem came from the new SFTP...
http://www.nntp.perl.org/group/perl.golf/2008/06/msg2504.html

Re: A challenge to explain the strange results (under linux) by Ronald J Kimball - June 11, 2008

I would bet that your color.txt file has Windows line endings on allplatforms. If you do this: perl test.pl color.txt lessyou may find that you&39;re getting output after all.Make sure color.txt has Unix line endings on the Linux machines. Here&39;sone way to fix it: perl -pi -e &39;trrd&39; color.txtRonald
http://www.nntp.perl.org/group/perl.golf/2008/06/msg2503.html

A challenge to explain the strange results (under linux) by Zhu Shanshan - June 11, 2008

I used perl "v5.8.5 built for i386-linux-thread-multi". My data: File:color.txtchartreusedeeppinkgoldenrodlightbluedodgerbluedarkgoldenrod My scripts: File: test.pluse 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 i686i686 i386 GNULinux" RedHat"Linux biome 2.6.9-55.ELsmp 1 SMP...
http://www.nntp.perl.org/group/perl.golf/2008/06/msg2502.html
Available Archives
- March (1 item)
- April (1 item)
- May (6 items)
- June (5 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact