Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 surveying the Monastery: (10)
As of 2015-07-04 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls