and the padding (space) for each column became one space only per column.
`echo $row >> $EGIS_table_fileName_tmp`; # THIS IS NOT WORKINGGGGGGGGGGGGGGGGGGGGGGGGG!
The problem is that instead of opening a file and printing to it you are instead shelling out and running echo from the shell which by default collapses multiple spaces into just one.
Have a good read through perlintro, especially the part about how to write to files from within Perl in the section Files and I/O. Good luck.