Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: printing arrays

by kdj (Friar)
on Dec 31, 2008 at 14:45 UTC ( #733478=note: print w/replies, xml ) Need Help??


in reply to Re: printing arrays
in thread printing arrays

You actually wouldn't want the \n on the end of

     print "$ids[$i] $names[$i]\n";

That would only print one id/name combination per line, and (s)he wants the entire contents of both arrays on one line. Replace the \n with a space and it should work.

Replies are listed 'Best First'.
Re^3: printing arrays
by Spooky (Beadle) on Dec 31, 2008 at 15:16 UTC
    ..thanks kdj - have a good new year's eve..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733478]
help
Chatterbox?
[james28909]: why, what is the point. if you cant see that we are smarter than cavemen then i need to just shutup lol. cavemen didnt propell themselves onto a moon. they stared at it and probably howled
[SuicideJunkie]: We are certainly vastly more educated and wealthy. Raw intelligence is much more difficult to measure.
[james28909]: exactly. i think the question that should be asked is, where will intelligence take us.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-12-15 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (433 votes). Check out past polls.

    Notices?