I’ve 2 arrays @arr & @arr1 each having 10 elements stored in it.
I need to print a table with header.
I need to load these array values into table of 10 rows & 2 columns.
@arr values into 1st column & `@arr1` into second column.
Table should like something as displayed here. How can I do it in perl scripting?

You can merge your arrays with
map. This easily extends to more columns as well.Output:
If you want to add borders, you can do something like this instead:
Everything above
my $tb = ...is unchanged. Personally I’m not a big fan of ascii borders though.