Re: Compiler options perl

2009-04-18 Thread Jenda Krynicky
From: edw...@yandex.ru The problem is that I did this benchmarking before. Actually, the code snippets above are run in a very long cycle, and if we have foreach statement, then we need to store some value for loop iteration and even one assignment of this variable consumes time

Compiler options perl

2009-04-17 Thread edwin6
Hello, I would like to know, how to force perl unfold foreach expression during the compilation, i.e. I want next code: foreach (1..100) { block } to be compiled like this: block[$_ = 1] block[$_ = 2] block[$_ = 3] . . . block[$_ = 100] Where block[$_ = n] means block with all

Re: Compiler options perl

2009-04-17 Thread Jim Gibson
On 4/16/09 Thu Apr 16, 2009 1:39 PM, edw...@yandex.ru edw...@yandex.ru scribbled: Hello, I would like to know, how to force perl unfold foreach expression during the compilation, i.e. I want next code: foreach (1..100) { block } to be compiled like this: block[$_ =

Re: Compiler options perl

2009-04-17 Thread Chas. Owens
On Fri, Apr 17, 2009 at 12:16, Jim Gibson jimsgib...@gmail.com wrote: On 4/16/09 Thu  Apr 16, 2009  1:39 PM, edw...@yandex.ru edw...@yandex.ru scribbled: Hello, I would like to know, how to force perl unfold foreach expression during the compilation, i.e. I want next code: snip Can you

Re: Compiler options perl

2009-04-17 Thread edwin6
17.04.09, 20:16, Jim Gibson jimsgib...@gmail.com: On 4/16/09 Thu Apr 16, 2009 1:39 PM, edw...@yandex.ru edw...@yandex.ru scribbled: Hello, I would like to know, how to force perl unfold foreach expression during the compilation, i.e. I want next code: foreach