From 09bde31d22882ccf76902b126a746793e665bca9 Mon Sep 17 00:00:00 2001 From: TheHalcyonSavant Date: Mon, 7 May 2018 10:19:17 +0200 Subject: [PATCH] #16 fix --- backtest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtest.pl b/backtest.pl index 3fc8685..ef96eeb 100755 --- a/backtest.pl +++ b/backtest.pl @@ -65,7 +65,7 @@ sub convert { # print $data; my $coder = JSON::XS->new->ascii->pretty->allow_nonref; $json = $coder->encode ($data); - $json =~ s/^{/config.$stratname = {\n/; + $json =~ s/^{/config['$stratname'] = {\n/; return $json; } sub convert_json_toml {