From 42b0129ec342b8044d0d84c94151da160c288602 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 29 Feb 2016 20:40:16 +0100 Subject: nms: Update add_switches.txt.pl to output an arrary --- tools/add_switches.txt.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/add_switches.txt.pl b/tools/add_switches.txt.pl index 5a6b83c..635e356 100755 --- a/tools/add_switches.txt.pl +++ b/tools/add_switches.txt.pl @@ -12,6 +12,6 @@ use lib '../include'; use JSON; use nms::util; -my %switches = parse_switches_txt(*STDIN); +my @switches = parse_switches_txt(*STDIN); -print JSON::XS::encode_json(\%switches); +print JSON::XS::encode_json(\@switches); -- cgit v1.2.3