Egg::Plugin::HTTP::BrowserDetect - Plugin for HTTP::BrowserDetect.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Plugin::HTTP::BrowserDetect - Plugin for HTTP::BrowserDetect.

SYNOPSIS

Top

  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

Top

Information on a browser etc. that the client uses is examined.

see HTTP::BrowserDetect.

METHODS

Top

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

Top

HTTP::BrowserDetect, Egg::Release,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.