in reply to Re^2: giving spaces
in thread giving spaces

If that's what you want to print, you don't need any space regex.

print " $arrayA[$x] $arrayB[$x] ";

will print the spaces too...

I hope that helps.

-Michael