Fix the error handling in ERR_get_state:
[openssl.git] / crypto / lhash / num.pl
1 #! /usr/bin/env perl
2 # Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9 #node     10 ->   4
10
11 while (<>)
12         {
13         next unless /^node/;
14         s|\R$||;                # Better chomp
15         @a=split;
16         $num{$a[3]}++;
17         }
18
19 @a=sort {$a <=> $b } keys %num;
20 foreach (0 .. $a[$#a])
21         {
22         printf "%4d:%4d\n",$_,$num{$_};
23         }