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

Perl/Helpful Libraries/Throughput/Usage/Config

From NetSec
Revision as of 04:25, 16 July 2012 by AlizaLorenzo (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • 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}