Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Comparing and Aligning arrays

by ww (Bishop)
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.


Comment on Re: Comparing and Aligning arrays
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-12-27 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls