CGI written using perl is saved with .cgi extension.
How does this CGI get invoked ? When we want to execute perl file, we just write "perl filename.pl" and that file is executed. In case of cgi, if it is executed as "perl filename.cgi", will perl interpreter be able to understand .cgi extension ? If no, then how does the perl code of a file with .cgi extension is executed ?