good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: grep, map vs. foreach performanceby Flexx (Pilgrim) |
on Sep 04, 2002 at 14:26 UTC ( [id://195085]=note: print w/replies, xml ) | Need Help?? |
Now, why is that? Shouldn't that be
then? On the contrary actually:
So, it seems that while is for only for the obvious endless loop, and in other cases for is while (as I had expected...) However, I am intriqued by the fact that
and not
(at least not on the Perl level of things). Cool stuff anyway! Thanks a million. I learned a lot from your reply. I flew over the optimizer and Deparse a few times (mostly when searching for other things), but using it that way looks powerful. Got any pointers to good information on it? Is there some "How to wrink the guts out of your script using -MO=Deparse/the Optimizer" somewhere? So long, (I like the photo on your home node, BTW).
In Section
Seekers of Perl Wisdom
|
|