GetOptions ( "pancfg=s" => \$pan_cfg, "outfile=s" => \$outfile ) or die("Error in command line arguments. Arguments:\n\t--pancfg = Pan config file to read.\n\t--outfile = Output file for parsed data."); #Open the config file and attempt to parse it. $cs = Config::Scoped->new( file => $pan_cfg, warnings => $warnings, ); $cfg_hash = $cs->parse;