http://www.perlmonks.org?node_id=175436


in reply to using two arrays to make a table

Your inner loop confuses me. For one, you're using the conditional == operator when you probably mean the assignment = operator. Secondly, why are you using a C-style for loop on the inside when you can just say

foreach my $heading(@headings) { print $heading; foreach my $name (@names) { print $name; } }