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 reply to Re^2: printing arrays
by kdj
in thread printing arrays
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |