open my $fh, '<', "C:/" . "conf.prop" or die "unable to open configuration file"; my $properties = Config::Properties->new(); $properties->load($fh); my $value = $properties->getProperty('my.token');