File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
configurationManagerLib/Loader Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog for V1.x
2
2
3
+ #### V1.1.1
4
+ * perl 5.10 compatibility for ConfigurationImporter
5
+
3
6
#### V1.1.0
4
7
* Support automatic configuration import from yaml files
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ use strict;
3
3
use warnings;
4
4
require Exporter;
5
5
6
+ $ConfigurationImporter::VERSION = " 1.1.1" ;
7
+
6
8
sub import
7
9
{
8
10
no strict ' refs' ;
@@ -15,7 +17,7 @@ sub import
15
17
my $content = ${$args -> {" content" }};
16
18
my $loader = $args -> {" loader" };
17
19
18
- foreach my $contentKey (keys ($content )) {
20
+ foreach my $contentKey (keys (%{ $content } )) {
19
21
next if ($contentKey ne " import" );
20
22
21
23
my @importedFiles ;;
@@ -29,7 +31,7 @@ sub import
29
31
foreach my $importedFile (@importedFiles ) {
30
32
my $importedContent = $loader -> load($importedFile );
31
33
32
- foreach my $importedContentKey (keys ($importedContent )) {
34
+ foreach my $importedContentKey (keys (%{ $importedContent } )) {
33
35
if (!exists $content -> {$importedContentKey }) {
34
36
$content -> {$importedContentKey } = $importedContent -> {$importedContentKey };
35
37
}
You can’t perform that action at this time.
0 commit comments