From 81d829b1d2a08e3cfbc996caf3e56ddfc9ab2376 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 18 Jun 2020 04:38:25 +0530 Subject: Use %show instead of @to_show %show should be used everywhere & @to_show only to create %show. --- ara.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ara.pl b/ara.pl index 401777b..0bbf062 100755 --- a/ara.pl +++ b/ara.pl @@ -221,7 +221,7 @@ foreach my $i ( 0 ... scalar @$statewise - 1 ) { # If user has asked to show specific states then forget about hide # option. - if ( scalar @to_show ) { + if ( scalar keys %show ) { next unless exists $show{lc $state} or ( length $state > 16 -- cgit 1.4.1-2-gfad0