Skip to content

Commit

Permalink
Update depreciated 'keys' syntax to perl 5.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Jan 10, 2019
1 parent fe029ce commit 34aad6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dimob/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sub evaluate_parameters {

my $config = $self->config;

for my $param (keys $config) {
for my $param (keys %{$config}) {
if($config->{$param} =~ /\{\{.+\}\}/) {
$config->{$param} =~ s/\{\{([\w_]+)\}\}/$config->{$1}/eg;

Expand Down

1 comment on commit 34aad6c

@innovate-invent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit should have brought the code up to perl 5.26 and resolved #5. More testing is needed.

Please sign in to comment.