]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
freifunk.cgi: Enable perl strict mode
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 8 Mar 2015 18:42:28 +0000 (19:42 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Mar 2015 15:39:08 +0000 (16:39 +0100)
html/cgi-bin/freifunk.cgi

index 1ee22d802db9e297b02181455c4f819e00f1e641..8c3036280addccfd1610b56cd8f582aedaa90594 100755 (executable)
@@ -21,7 +21,7 @@
 
 use open qw(:encoding(UTF-8) :std);
 
-#use strict;
+use strict;
 use JSON::Parse;
 
 # enable only the following on debugging purpose
@@ -374,7 +374,7 @@ sub GetNetworkList() {
                push(@ret, [$network->{'id'}, $network->{'name'}]);
        }
 
-       return sort { $a{1} cmp $b{1} } @ret;
+       return sort { $a->[1] cmp $b->[1] } @ret;
 }
 
 sub GetNetwork($) {