in reply to DBI, rows, and do

If placeholders sort out quoting issues, then surely my trek to the mountain was fruitful! Heh.

As for localising $rows, I considered it (although not specifically for this problem), but didn't try it because I was too lazy/petrified to go through the whole module fixing it, but I did it now and still no luck. $rows is still returning 1 to. Bah.