/[pxelator]/lib/PXElator/server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by dpavlin, Thu Jul 30 21:31:30 2009 UTC revision 128 by dpavlin, Mon Aug 3 19:59:08 2009 UTC
# Line 2  package server; Line 2  package server;
2    
3  use warnings;  use warnings;
4  use strict;  use strict;
5  use File::Slurp;  
6    use Module::Refresh;
7    sub refresh { Module::Refresh->refresh };
8    
9  our $ip      = '172.16.10.1';  our $ip      = '172.16.10.1';
10  our $netmask = '255.255.255.0';  our $netmask = '255.255.255.0';
# Line 11  our ( $ip_from, $ip_to ) = ( 10, 100 ); Line 13  our ( $ip_from, $ip_to ) = ( 10, 100 );
13    
14  our $base_dir = '/home/dpavlin/llin/pxelator';  our $base_dir = '/home/dpavlin/llin/pxelator';
15    
16  our $debug = 0;  use config;
17  sub debug {  
18          my $new = shift;  our $debug;
19          my $path ="$base_dir/conf/debug";  sub debug { $debug = config::shared('debug', @_) || 0 }
         if ( defined $new ) {  
                 write_file $path, $debug = $new;  
         } else {  
                 $debug = read_file $path if -e $path;  
         }  
         return $debug;  
 }  
20    
21  warn "loaded";  warn "loaded";

Legend:
Removed from v.67  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.26