Skip to content

Commit 4f2b136

Browse files
committed
Now module will always try to search files in current directory
Slight POD changes.
1 parent 377a52e commit 4f2b136

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/Config/Processor.pm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ sub new {
4848

4949
my $self = bless {}, $self_class;
5050

51-
$self->{dirs} = $params{dirs} || ['.'];
51+
$self->{dirs} = $params{dirs} || [];
52+
push( @{ $params{dirs} }, '.' );
53+
5254
$self->{interpolate_variables} = exists $params{interpolate_variables}
5355
? $params{interpolate_variables} : 1;
5456
$self->{process_directives} = exists $params{process_directives}
@@ -470,8 +472,9 @@ After merging of two files we will get:
470472
471473
=head1 INTERPOLATION
472474
473-
Config::Processor can interpolate variables in string values. For example, we
474-
have F<myapp.yml> file:
475+
Config::Processor can interpolate variables in string values (if you need alias
476+
for complex sctructures see C<var> directive). For example, we have
477+
F<myapp.yml> file:
475478
476479
myapp:
477480
media_formats: [ "images", "audio", "video" ]

0 commit comments

Comments
 (0)