11 |
tie our $ip_from, 'server::tie', 'ip_from' => 10; |
tie our $ip_from, 'server::tie', 'ip_from' => 10; |
12 |
tie our $ip_to, 'server::tie', 'ip_to' => 100; |
tie our $ip_to, 'server::tie', 'ip_to' => 100; |
13 |
tie our $domain, 'server::tie', 'domain' => 'pxelator.lan'; |
tie our $domain, 'server::tie', 'domain' => 'pxelator.lan'; |
14 |
|
tie our $new_clients, 'server::tie', 'new_clients' => $ip_to - $ip_from; |
15 |
|
|
16 |
warn "DEV $ip $bcast $netmask"; |
warn "DEV $ip $bcast $netmask"; |
17 |
|
|
89 |
sub FETCH { |
sub FETCH { |
90 |
warn dump @_; |
warn dump @_; |
91 |
my $self = shift; |
my $self = shift; |
92 |
read_file $$self->{path}; |
my $v = read_file $$self->{path}; |
93 |
|
chomp($v); |
94 |
|
$v; |
95 |
} |
} |
96 |
|
|
97 |
3; |
3; |