[HRPM] nother one

chicks at chicks.net chicks at chicks.net
Wed Nov 15 17:09:57 CST 2000


On Wed, 15 Nov 2000, Mark D Wolinski wrote:
> Chris could probably give a technical answer if a for loop is more
> expensive then a foreach or not...

I don't think there's much performance difference between them for most
applications.  The nice thing about the foreach is that you can modify the
scalar and it affects the array itself.  This makes many loops much
simpler.  :-)

-- 
</chris>

"Pinky, you've left the lens cap of your mind on again." - The Brain




More information about the Norfolk-pm mailing list