in reply to Create a table from a matrix

Thanks for your responses, they have helped a lot...but could you possibly provide some comments with your code so I can understand it better...im pretty inexperienced with Perl. Thanks.