davis has given you an appropriate answer, I would like to add that you should refer to the LATEST documenation for a module. The Select method has been deprecated for a long time, as far back as 1998 and at a quick check it doesn't appear in the current CGI documentation. I don't know where you found the information you have based your code on, but it is more than a little out of date.
You might like to refer to Ovids CGI course, it will guide you along a well founded path.