Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "Perl/Helpful Libraries/Throughput/Usage/Config"

From NetSec
Jump to: navigation, search
(Created page with "* '''A simple config parser''' {{code|text=<source lang="perl">use Throughput::Config qw(parse); my %config = Throughput::parse('config.conf');</source>}} * The config file shoul...")
 
 
(No difference)

Latest revision as of 01:46, 19 July 2012

  • A simple config parser
use Throughput::Config qw(parse);
my %config = Throughput::parse('config.conf');
  • The config file should be formatted as:
 variable=value # comment
  • The %config hash will return as :
$config{variable}