Thank you to those who voted and those who commented on this issue.
I have upgraded my
DBI module to v1.27
DBD_CSV to v0.1023
Text-CSV_XS to v0.21
SQL-Statement to v1.004
This has solved the problem of memory leaking.
I did experience some issues compiling the code under perl2exe. I got an error with the Parse.pm on line 180 all I did was replace
require "$mod";
with
require "SQL/Dialects/ANSI.pm";
require "SQL/Dialects/AnyData.pm";
require "SQL/Dialects/CSV.pm";
Not pretty but I needed it to work fast..
Once again Many thanks to those that looked at this, I hope I can be as much help on PerlMonks in the future.
-----
Of all the things I've lost in my life, its my mind I miss the most.