Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Array function to concatenate

by suaveant (Parson)
on Oct 10, 2008 at 14:05 UTC ( [id://716458] : note . print w/replies, xml ) Need Help??


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"; }