Mega Code Archive

 
Categories / Perl / CGI
 

Get and display the browser type by referencing HTTP_USER_AGENT

#!/usr/bin/perl -w use strict; print "Content-Type: text/plain\n"; print "\n"; print "your browser is:       $ENV{HTTP_USER_AGENT}\n";