From: Jens Luedicke Date: 2001-01-06T02:02:07+09:00 Subject: [ruby-talk:8695] Re: "the 3 great virtues..." Ruby port > >>>>> "J" == Jens Luedicke writes: > > J> Ruby has some problems with ugly and messy code ;-)) > > Just ask ruby to have a better code : That was not my problem... Perl is known for the fact that you can feed it with even the messiest and ugliest code. After I had rewritten it with Ruby I tried to re-style my code like Larry's original... but wasn't possible. #!/usr/bin/perl @a=(Lbzjoftt,Inqbujfodf, Hvcsjt); $b="Lbssz Wbmm" ;$b =~ y/b-z/a-z/ ; $c = " Tif ". @a ." hsfbu wj" ."suvft pg b qsphsbnnfs" . ":\n";$c =~y/b-y/a-z/; print"\n\n$c ";for($i=0; $i<@a; $i++) { $a[$i] =~ y/b-y/a-z/;if($a[$i]eq$a [-1]){print"and $a[$i]." ;}else{ print"$a[$i], "; }}print"\n\t\t--$b\n\n"; -- with friendly regards.... jens luedicke PMC - Perl Mail Client http://www.irs-net.com/ wget it: wget -m -nH ftp://ftp.irs-net.com/pmc >> President BU-ll-SH-it ... -- If's Beste Freundin: Else