nghita/Mobile-Detect/blob/master/Mobile_Detect.json
#
use 5.006;
use strict;
no strict "subs";
use warnings FATAL => 'all';
no warnings qw/misc/;
use JSON;
use LWP::Protocol::https;
use LWP::UserAgent
;
use constant JSON_REMOTE_FILE => 'https://raw.githubusercontent.com/serbanghita/Mobile-Detect/master/Mobile_Detect.json';
use constant JSON_LOCAL_FILE => '/var/tmp/Mobile_Detect.json';
use constan
detect_mobile_ua);
sub new {
my($class, %args) = @_;
my $self = bless({}, $class);
my $json = JSON->new();
my $filestamp = 0;
my $filesize = 0;
my %hashfile;
my $hash;
if (-e HASH_LOC