Changes

Jump to navigation Jump to search
188 bytes added ,  12:07, 7 February 2015
Line 1: Line 1:  
=== NAME ===
 
=== NAME ===
esmith::NetworksDB - interface to esmith networks database<br />
+
esmith::NetworksDB - interface to esmith networks database<br />
in a root terminal you can do
+
In a root terminal you can do the command below if you want to display the up-to-date content
 
  perldoc -U esmith::NetworksDB
 
  perldoc -U esmith::NetworksDB
   Line 7: Line 7:  
           use esmith::NetworksDB;
 
           use esmith::NetworksDB;
 
           my $c = esmith::NetworksDB->open;
 
           my $c = esmith::NetworksDB->open;
 
+
 
           # everything else works just like esmith::DB::db
 
           # everything else works just like esmith::DB::db
   Line 40: Line 40:     
If called in list context, returns the array of addresses and network/netmask strings. It’s trivial, of course, to convert an array to a comma separated list :-)
 
If called in list context, returns the array of addresses and network/netmask strings. It’s trivial, of course, to convert an array to a comma separated list :-)
 +
 +
my $ndb = esmith::NetworksDB->open_ro;
 +
my @access = $ndb->local_access_spec;
 +
then
 +
my $access = join ( ",", @access);
    
=== AUTHOR ===
 
=== AUTHOR ===

Navigation menu