Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Array function to concatenate

by suaveant (Parson)
on Oct 10, 2008 at 14:05 UTC ( #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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://716458]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2022-10-06 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?