Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Comparing and Aligning arrays

by ww (Archbishop)
on Apr 04, 2014 at 00:40 UTC ( #1081047=note: print w/replies, xml ) Need Help??


in reply to Comparing and Aligning arrays

I can see (I think) how you transform

a a b
to
a a -
and
a a b b b c

to
b b b
and
b b c c d d

to - d d
but the rule I intuit for those doesn't work for the transformation of
b b c c d d

to
c - c

CODE TAGS...

<c> ... data here
(even multiline data)... </c>
might help us to understand how you get from the source of the list to the output; that is, by what rule(s) are you doing the tranformations?

or is it just too late in the evening for me to understand?


Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081047]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-11-21 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (306 votes). Check out past polls.

    Notices?