Eating memory

Simon Wilcox essuu at
Tue May 23 13:45:18 BST 2006

On Tue, 23 May 2006, Nicola Worthington wrote:

> > foreach (<INFILE>) {
> Surely this is reading the entire file in to memory as an array? Wouldn't
> while (<INFILE)>) {
> be more appropriate?

Yeah, I knew that !

/me beats self around the head.

Told you it was something stupid. Sometimes you get so used to doing
something a particular way you forget there are very good reasons for
using different constructs.


"Is there any tea on this spaceship ?"

More information about the mailing list