You might like to try taking your list and using listToArray(). You can then
loop over the array and keep track of where you are up to. It's possibly
also faster.

________________________________________
From: Dick Applebaum [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 June 2004 12:45 p.m.
To: CF-Talk
Subject: Re: Out of Memory Error Transforming large XML file.

2) Perl maintains a pointer to the current line position in a��file --
this means you can chomp (readLn) the file in subroutines, then return
to the caller with the current line positioned where the subroutine
left it.��CF list-looping has no similar construct, nor the ability to
list-loop from-to -- this means that the logic of the main routine gets
more complex and there is more main-subroutine overhead.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to