http://www.perlmonks.org?node_id=1081058


in reply to Comparing and Aligning arrays

Dear All,

Thank you for the replays

What I'm aiming for is to have new aligned lists where in raw number i for all of them I should have even the same charecter or "-". When I'll but "-" all the following items in the list should be shifted down

it's very important for me to keep the original order.

Thanks again

Replies are listed 'Best First'.
Re^2: Comparing and Aligning arrays
by AnomalousMonk (Archbishop) on Apr 04, 2014 at 02:44 UTC
    What I'm aiming for is to have new aligned lists where in raw number i for all of them I should have even the same charecter or "-". When I'll but "-" all the following items in the list should be shifted down

    I'm very sorry, but I don't understand this at all. In addition to a clarifying verbal description, could you perhaps give us another example? (Within  <c> ... </c> code tags of course; please see Markup in the Monastery.) For instance, what separator distribution would you expect from the following (assuming it's a valid set of lists):

    my @List1 = qw(a a b); my @List2 = qw(b b c); my @List3 = qw(d d e);