Egg::Plugin::HTTP::BrowserDetect - Plugin for HTTP::BrowserDetect.
use Egg qw/ HTTP::BrowserDetect /; if ($e->browser->windows) { # OS is Windows. } elsif ($e->browser->mac) { # OS is Macintosh. } elsif ($e->browser->unix) { # OS is Unix. } else { # Other OS. }
Information on a browser etc. that the client uses is examined.
see HTTP::BrowserDetect.
The object of HTTP::BrowserDetect is returned.
It is not necessary usually though USER_AGENT can be passed to the argument.
my $browser= $e->browser;
HTTP::BrowserDetect, Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.