if ($install) { # Open the configfile at /etc/myconf.conf my $Config = Config::Tiny->read( $conf ) if -e $conf or die RED, "\n\nError: Config file $conf missing\n\n", RESET; # Just testing print "Installing now\n"; # Reading properties and print to test my $pgpass = $Config->{Postgresql}->{pass}; print "$pgpass\n"; }