in reply to Re^2: NetDB - Problem with perl module NET:MAC:Vendors
in thread NetDB - Problem with perl module NET:MAC:Vendors
Meh - looking ath the source code of Net::MAC::Vendors, it seems that its documentation is simply wrong:
... sub load_cache { my( $source, $dest ) = @_; my $data = do {; if( defined $source ) { unless( -e $source ) { carp "Net::Mac::Vendor cache source [$source] does not + exist"; return; } do { local( @ARGV, $/ ) = $source; <> } } else { __PACKAGE__->ua->get( oui_url() )->res->body; } }; ...
Try simply passing a plain filename to it:
Net::MAC::Vendor::load_cache("/opt/netdb/netmacvendor/oui.txt");
Also, opening a bug report here might help :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: NetDB - Problem with perl module NET:MAC:Vendors
by Vict0rC (Initiate) on Oct 12, 2015 at 19:58 UTC | |
|
Re^4: NetDB - Problem with perl module NET:MAC:Vendors
by Vict0rC (Initiate) on Oct 14, 2015 at 19:50 UTC |