in reply to Adding an identifier to an array element.

Tell us what @all looks like. Is it a one-dimensional array composed of the N lines of a block? Is it a 2-dimensional array where you store each block in thr array?

What is <1> as opposed to <1c>? Something to be displayed, or manipulated, or an index into your array, or...?

You seem to be suffering from I know what I mean. Why don't you?.

REVISED: That last was uncalled for. I just reread your post. Why not simply maintain a "counter" of a single character (null initially, then 'a', 'b', etc. Be careful what happens after 'z'), incrementing the counter each time you hit a record starting <1>? Then you could output it at will...

Replies are listed 'Best First'.
Re^2: Adding an identifier to an array element.
by Anonymous Monk on Apr 15, 2010 at 19:48 UTC
    So you know what he means... Why don't I? : )

    (Even if he wants to add a..z to each block it's completely unknown how his input can be split...

    In short: What?)