Perl is the most widely used programming language for writing CGI scripts.

It is especially well-suited for handling strings and files.