On Thu, Jan 13, 2011 at 02:43:28PM -0800, Rick wrote: > A foreach requires perl to hold the whole file in memory, while the "while" > process a line at a time.
That entirely depends on the while loop. In this case, Marek read the whole file into memory before the while loop, which is iterating over regex matches, not lines. Ronald -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>