From: Alexander Hartmaier Date: Mon, 29 Mar 2010 16:15:41 +0000 (+0200) Subject: fixed configfile attribute examples X-Git-Tag: 0.07~3^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c36a5f381f55b817659e61bd3c6513f05eb0b949;p=gitmo%2FMooseX-SimpleConfig.git fixed configfile attribute examples --- diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm index 4754a7e..879e0b8 100644 --- a/lib/MooseX/SimpleConfig.pm +++ b/lib/MooseX/SimpleConfig.pm @@ -121,12 +121,12 @@ well, which allows specifying C<-configfile> on the commandline. Provided by the base role L. You can provide a default configfile pathname like so: - has +configfile ( default => '/etc/myapp.yaml' ); + has '+configfile' => ( default => '/etc/myapp.yaml' ); You can pass an array of filenames if you want, but as usual the array has to be wrapped in a sub ref. - has +configfile ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); + has '+configfile' => ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); Config files are trivially merged at the top level, with the right-hand files taking precedence.