in reply to DBI problem

Not related to the DBI problem, but the double quotes around "$name" and "$input" aren't necessary (and could cause all sorts of headaches if you ever tried passing an object which overloaded stringification and subsequently tried to invoke methods on it . . .).