From: Michele Dondi Date: 2007-06-16T22:20:08+09:00 Subject: Re: Runtime disparity - Same program in Perl and Ruby On Thu, 14 Jun 2007 20:15:16 -0000, Kaldrenon wrote: >reply for making my code more "Perl"-y. I don't think many (if any) >will actually change the way the program runs, though, will they? A Just try. >lot of the things I did work, but are styled more like Java, the >language I use most. For example, I know I can just use $_ in sub >file_seek, but I prefer to give my vars names that make more sense at >a glance. But I'll keep all of your advice in mind. $_ is a pronoun and it makes sense in short enough phrases. If you have a C loop with a two or three lines block (or even a C modifier) then use it. If it's 100 lines long (probably not a good idea in its own) then use an explicit name. Michele -- {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^