in reply to Installing DBD-mysql-2.9003

Your problem wasn't that the line 97 contained a newline, it was that one of the variables ($thispth,$thislib,$so) contained a newline.

The question is, how did the newline get there? Do any of the lib directories contain a filename that has a newline in it's name?