in reply to Generate Matrix in perl

Don't be afraid to show us what you have tried so far. Everyone will help you in understanding what it is that you are doing wrong and to point you in the right direction