while im here what does the .. do in the []?)
That is a slice.
The intent of the module is that you don't need to know so much about it, you just create a new CGI instance and get the environment variables you need.
there is a simple example program in the docs that demos how to print all values passed via the url.