Skip to content

Instantly share code, notes, and snippets.

@yoshiki
Created June 5, 2009 12:21
Show Gist options
  • Save yoshiki/124263 to your computer and use it in GitHub Desktop.
Save yoshiki/124263 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/perl
use strict;
use HTTP::MobileAgent;
sub foo {
local $ENV{HTTP_USER_AGENT} = 'J-PHONE/2.0/J-DN02';
my $agent = HTTP::MobileAgent->new;
return $agent->get_header( 'x-jphone-uid' ) unless $agent->is_type_c;
}
warn &foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment