my @array1_sort=sort{$a->[0] cmp $b->[0]}@array1;
1
2
3
4
5
6
push (@request_unsorted,"GET: $get");
push (@request_unsorted,"POST: $post");
push (@request_unsorted,"HEAD: $head");
push (@request_unsorted,"OPTIONS: $option");
print FHR join("\n",@request_unsorted,"\n");
1
2
3
4
5
6
push (@request_unsorted,["GET:","$get"]);
push (@request_unsorted,["POST:","$post"]);
push (@request_unsorted,["HEAD:","$head"]);
push (@request_unsorted,["OPTIONS:","$option"]);
my @request_sorted = sort{$a->[0] cmp $b->[0]}@request_unsorted;
print FHR join("\n",@request_sorted,"\n");
push (@ip_und_counter, "$_: $counter_gesammt");
print FHR join("\n",map{join('',@$_)}@request_sorted,"\n");