Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Comparing and Aligning arrays

by abd (Initiate)
on Apr 04, 2014 at 02:26 UTC ( #1081058=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Comparing and Aligning arrays
Re^2: Comparing and Aligning arrays
by AnomalousMonk (Abbot) 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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-10-20 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls