package HTTP::MobileAgent::NonMobile; use strict; use vars qw($VERSION); $VERSION = 0.02; use base qw(HTTP::MobileAgent); __PACKAGE__->make_accessors( qw(model device_id) ); sub parse { my $self = shift; my($name, $version) = split m!/!, $self->user_agent; $self->{name} = $name; $self->{version} = $version; $self->{device_id} = ''; $self->{model} = ''; } sub is_non_mobile { 1 } sub carrier { 'N' } sub carrier_longname { 'NonMobile' } sub xhtml_compliant { 1 } 1; __END__ =head1 NAME HTTP::MobileAgent::NonMobile - Non-Mobile Agent implementation =head1 SYNOPSIS use HTTP::MobileAgent; local $ENV{HTTP_USER_AGENT} = "Mozilla/4.0"; my $agent = HTTP::MobileAgent->new; =head1 DESCRIPTION HTTP::MobileAgent::NonMobile is a subclass of HTTP::MobileAgent, which implements non-mobile or unimplemented user agents. =head1 METHODS See L for common methods. =head1 AUTHOR Tatsuhiko Miyagawa Emiyagawa@bulknews.netE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 SEE ALSO L =cut