Just learn perl if you want to know CGI. That's all it is the CGI is just created from the input/output of the perl program