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 occurences of $_ substituted with n.
Of course, we presume that array like (1..100) is known at compile time.
Regards,
-edwin
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/