next up previous
Next: 4. Applications development Up: 4. What can Perl Previous: 2. Working with files

3. Web/CGI programming

Perl is the language of choice for most web development. Since HTML is just text, Perl handles it with ease. The CGI module makes handling CGI query strings and parameters easy, even for files uploaded with <INPUT TYPE=``FILE''>:

use CGI 'param';

my $card_number = param('card_number');
my $file_upload = param('file_upload');

But Perl is not just for CGI query handling and HTML output! Perl modules are also available to dynamically generate web graphics, handle HTTP authentication, or interact directly with the web server.

Kirrily Robert