kyoshu has asked for the wisdom of the Perl Monks concerning the following question:
to detect if browser supports xhtml i use:
is there any more advanced way? module, or how you do it?#!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; if ( grep { /application\/xhtml\+xml/ } $q->Accept ) { print "Content- +type: application/xhtml+xml\n\n"; } else { print "Content-type: text/html;Charset=utf-8\n\n"; } print 'some xhtml'; ...
20050602 Edit by ysth: remove pre tags, add code tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to detect if browser supports xhtml
by gellyfish (Monsignor) on Jun 02, 2005 at 09:08 UTC | |
Re: how to detect if browser supports xhtml
by Joost (Canon) on Jun 02, 2005 at 10:50 UTC |
Back to
Seekers of Perl Wisdom