Thanks for the correction. I made the change in my script. :D Please feel free to write the shorter version in Perl, this worked for me, but I doubt as many people are using Python -with- MySQLdb installed as there are Perl users. Ray