For each pair that you read, split it into two names, and use the mapping from the first step to turn it into two column/row numbers. Use that to access the array of arrays, and set the value to 1
Print the result
Perl 6 - links to (nearly) everything that is Perl 6.
Comment on Re: create a matrix for print 0 or 1 from pairing