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


in reply to how to convert two lists into adjacency matrix

Please have a look at How do I compose an effective node title? and at Markup in the Monastery.

Don't misuse <pre>-Tags here.

To your question: you're telling what you have as data source and what the desired result should look like.

But you don't show where you have your problems...

So, where's your problem hidden? What do you have problems with?

Are you looking for someone to write your code?

Update: You could do something like this (if you want to do it on your own):