NAME
CGI::Application::Plugin::BrowserDetect - Browser detection plugin for CGI::Application
SYNOPSIS
use CGI::Application::Plugin::BrowserDetect;
sub runmode
{
my $self = shift;
my $browser = $self->browser;
if ($browser->ie)
{
# ...
}
# ...
}
DESCRIPTION
CGI::Application::Plugin::BrowserDetect adds browser detection support to your CGI::Application modules by providing a HTTP::BrowserDetect object. Lazy loading is used when creating the object so it will not be created until it is actually used.
See HTTP::BrowserDetect for more details on what you can do with the browser object.
METHODS
browser
This method will return the current HTTP::BrowserDetect object. The HTTP::BrowserDetect object is created on the first call to this method, and any subsequent calls will return the same object.
# Retrieve the browser object
my $browser = $self->browser;
BUGS
Please report any bugs or feature requests to bug-cgi-application-plugin-browserdetect at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-BrowserDetect. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SEE ALSO
CGI::Application, HTTP::BrowserDetect
AUTHOR
Bradley C Bailey, <cap-browserdetect at brad.memoryleak.org>
COPYRIGHT & LICENSE
Copyright 2008 Bradley C Bailey, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.