HTTP::MobileAgent::Plugin::SmartPhone is a Perl plugin of HTTP::MobileAgent for detecting smartphone.
SYNOPSIS
use HTTP::MobileAgent;
use HTTP::MobileAgent::Plugin::SmartPhone;
my $agent = HTTP::MobileAgent->new;
if ($agent->is_smartphone) {
if ($agent->is_ios) {
if ($agent->is_iphone) {
...
}
elsif ($agent->is_ipod) {
...
}
elsif ($agent->is_ipad) {
...
}
}
elsif ($agent->is_android) {
if ($agent->is_android_tablet) {
...
}
else {
...
}
}
}
$agent->ios_version; # eg. 5
$agent->ios_full_version; # eg. 5_0_1
Product's homepage
Requirements:
· Perl