For example can I run a CGi program on a command line version of PERL? Isn't PERL strictly a command line language? It can'e be because I know what u can program it on the web using CGi.
There's nothing "magic" about CGI, all it does is read arguments from its command-line (and/or STDIN and/or environment variables) and write HTML to its STDOUT. In other words, a CGI program _IS_ a command-line program!