Help for this page

Select Code to Download


  1. or download this
    Say you have a script called foo and a file of configuration options c
    +alled foo.xml containing this:
    </p>
    ...
          <address>10.0.1.103</address>
        </server>
      </config>
    
  2. or download this
      use XML::Simple;
    
      my $config = XMLin();
    
  3. or download this
      use Data::Dumper;
    
      print Dumper($config);
    
  4. or download this
      {
          'logdir'        => '/var/log/foo/',
    ...
              }
          }
      }
    
  5. or download this
      print $config->{logdir};
    
  6. or download this
      print $config->{server}->{kalahari}->{address}->[1];