http://qs321.pair.com?node_id=67189


in reply to Escaping MySQL password

Since your password is the last element on the line read from the file, perhaps you need a chomp to remove a newline?