print " $arrayA[$x] $arrayB[$x] ";
will print the spaces too...
I hope that helps.
In reply to Re^3: giving spaces by mtmcc in thread giving spaces by Anonymous Monk