[Brisbane-pm] To Chomp or Not To Chomp - sorted

Sarah Smith Sarah.Smith at trolltech.com
Tue Feb 27 03:31:23 PST 2007


On Tuesday 27 February 2007 21:07, Martin Jacobs wrote:
> Hi folks,
>
> Thanks Jacinta and Sarah.
>
> It should have been simple, and it was. See attached.
>
> Regards,
> Martin
> Visit my website...
> http://web.mac.com/martin_jacobs1
>
>
Great!

   @lines = <MYFILE>;

(as you have here) is perfect for your small configuration files.

You mention however that you are also processing some very large files.

For those you probably want to do your processing line by line (like in the 
example I sent before) otherwise the array assignment will read the whole 
thing into memory.

Rgds,
-- 
Sarah Smith BSc MACS
Senior Software Engineer
Ph +61 7 321 999 06 x109
Trolltech (Australia) Pty Ltd


More information about the Brisbane-pm mailing list