Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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"; }

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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found