A foreach requires perl to hold the whole file in memory, while the "while" process a line at a time. Most issues with large files and "foreach" involve hitting a system memory limit.
On Thu, Jan 13, 2011 at 8:07 AM, Marek Stepanek < ms...@podiuminternational.org> wrote: > The problem was iterating over many "naked" (with out any html-tags) > text in a large text file and tag these found occurrences, and replace > the line breaks with <br>. Meanwhile I found the solution, but I don't > know, why this is working with a while-loop, and not with a > foreach-loop. > -- 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>