[Database] enable_replication = 0 master_locked = 0 slave_servers = 0 master_source = DBI:mysql:name:master.example.com: master_user = username master_pass = password test_mode_source = DBI:SQLite:t/db_test.db [Logging] verbose = 99 #### #!/usr/bin/perl use warnings; use strict; use Config::Tiny; my $file = 'config.conf'; my $config = Config::Tiny->read($file); # get the master_user for the Database my $db_user = $config->{Database}{master_user}; print "$db_user\n"; # get the logging level my $verbose = $config->{Logging}{verbose}; print "$verbose\n";