CGI::Application::Plugin::BrowserDetect - Browser detection plugin for CGI::Application
use CGI::Application::Plugin::BrowserDetect; sub runmode { my $self = shift; my $browser = $self->browser; if ($browser->ie) { # ... } # ... }
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.
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;
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.
bug-cgi-application-plugin-browserdetect at rt.cpan.org
CGI::Application, HTTP::BrowserDetect
Bradley C Bailey, <cap-browserdetect at brad.memoryleak.org>
<cap-browserdetect at brad.memoryleak.org>
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.
To install CGI::Application::Plugin::BrowserDetect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Application::Plugin::BrowserDetect
CPAN shell
perl -MCPAN -e shell install CGI::Application::Plugin::BrowserDetect
For more information on module installation, please visit the detailed CPAN module installation guide.