Re: New question on strings



Darren New <dnew@xxxxxxxxxx> wrote:
Bryan Oakley wrote:
foreach line <some set of data ...> {
if {<some criteria is met>} {
incr count(<some index>)
}
}
Until your set of data is empty.

In which case [array size count] or [array names count]
will just return sensible values. That's the big advantage
of using arrays for that. And if it is being reused, a simple
[array unset count] does it.

.



Relevant Pages