in reply to Re: NetDB - Problem with perl module NET:MAC:Vendors
in thread NetDB - Problem with perl module NET:MAC:Vendors
Hello and thanks for reply, I tried all you adviced but nothing helped yet...
my $filename = '/opt/netdb/netmacvendor/oui.txt'; open my $fh, '<', $filename or die "Couldn't read $filename: $!";
This outputs nothing :(
use URI::file; print URI::file->new('/opt/netdb/netmacvendor/oui.txt');
And this outputs three slashes: file:///opt/netdb/netmacvendor/oui.txt
So I put file:///opt/netdb/netmacvendor/oui.txt in the code, bud error persists :(
#!/usr/bin/perl use strict; use Net::MAC::Vendor; use URI::file; print URI::file->new('/opt/netdb/netmacvendor/oui.txt'); Net::MAC::Vendor::load_cache("file:///opt/netdb/netmacvendor/oui.txt") +; my $filename = '/opt/netdb/netmacvendor/oui.txt'; open my $fh, '<', $filename or die "Couldn't read $filename: $!";
This outputs same error: Net::Mac::Vendor cache source [file:///opt/netdb/netmacvendor/oui.txt] does not exist at ./net-mac-vendor-test.pl line 7.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: NetDB - Problem with perl module NET:MAC:Vendors
by Corion (Patriarch) on Oct 12, 2015 at 19:17 UTC | |
by Vict0rC (Initiate) on Oct 12, 2015 at 19:58 UTC | |
by Vict0rC (Initiate) on Oct 14, 2015 at 19:50 UTC |