Masatoshi Mizuno > Egg-Release > Egg::Plugin::HTTP::BrowserDetect

Download:
Egg-Release-3.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 3.00   Source  

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.

syntax highlighting: