http://qs321.pair.com?node_id=716458


in reply to Array function to concatenate

If you know they are all arrays with corresponding indexes it is easy.
for(my $i=0; $i<@Code; $i++) { print "$Code[$i] $Portal_Name[$i] $Text[$i]\n"; }

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re^2: Array function to concatenate
by ikegami (Patriarch) on Oct 10, 2008 at 14:07 UTC
    Simpler:
    for my $i ( 0..$#Code ) { print "$Code[$i] $Portal_Name[$i] $Text[$i]\n"; }