Subject: | Undefined subroutine &Config::Auto::find_file called at blib/lib/Rubric/Config.pm line 173. |
Config::Auto: 0.29_02
I checked Config::Auto 0.20 docs, find_file wasn't documented as public
This seems to work
return $config = YAML::LoadFile( Config::Auto->new( source =>
$config_filename )->file );
I also tried
return $config = Config::Auto::parse($config_filename, format => 'yaml');
But it fails due to extra newlines being introduced into the config.
t/config_custom.t ... 1/?
# Failed test 'value of uri_root'
# at t/config_custom.t line 16.
# got: '
# http://server.name/rubric/rubric.cgi'
# expected: 'http://server.name/rubric/rubric.cgi'
Thanks