No such thing as a small change | |
PerlMonks |
Re^2: printing arraysby kdj (Friar) |
on Dec 31, 2008 at 14:45 UTC ( [id://733478]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|