NAME
Egg::Plugin::HTTP::BrowserDetect - Plugin for HTTP::BrowserDetect.
SYNOPSIS
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.
}
DESCRIPTION
Information on a browser etc. that the client uses is examined.
see HTTP::BrowserDetect.
METHODS
browser ([USER_AGENT])
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;
SEE ALSO
HTTP::BrowserDetect, Egg::Release,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT
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.