4 use Storable
qw(retrieve);
8 return bless {}, $class;
12 my ($self, $file) = @_;
14 my $retr = eval { retrieve
($file) };
20 if ($retr->{'wireless_devices'} && $retr->{'generic_devices'}) {
21 my %wireless_devices = map { $_ => $_ } @
{$retr->{'wireless_devices'}};
22 my %generic_devices = map { $_ => $_ } @
{$retr->{'generic_devices'}};
24 $self->{'wireless_devices'} = \
%wireless_devices;
25 $self->{'generic_devices'} = \
%generic_devices;
38 return 0 if $self->{'generic_devices'}->{$ua};
39 return 1 if $self->{'wireless_devices'}->{$ua};
40 last unless $ua =~ /\//;
41 $ua =~ s/^(.+)\/(.*)$/$1/;