PERL : How to create table from an array?
问题 I have an array like this @array = ( 1, some 9-digit number-1, some 9-digit number-2, 2, some 9-digit number-3, some 9-digit number-4 .....and so on ); Now I want to print this in a table as 1 some 9-digit number-1 some 9-digit number-2 2 some 9-digit number-3 some 9-digit number-4 3 some 9-digit number-5 some 9-digit number-6 I also want to print the table to a text file. What logic would be the best ? Thanks 回答1: I figured it out. I used Text::Table Thanks – John F use Text::Table; my $tb =