#!/usr/bin/perl -w use strict; use Config::Std; read_config( 'example.conf' => my %conf ); print STDERR "example.conf: ".$conf{settings}{a}."\n";