~ubuntu-branches/ubuntu/precise/openssl098/precise

« back to all changes in this revision

Viewing changes to crypto/lhash/num.pl

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2011-03-23 19:50:31 UTC
  • Revision ID: james.westby@ubuntu.com-20110323195031-6h9crj4bymhhr8b8
Tags: upstream-0.9.8o
ImportĀ upstreamĀ versionĀ 0.9.8o

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/local/bin/perl
 
2
 
 
3
#node     10 ->   4
 
4
 
 
5
while (<>)
 
6
        {
 
7
        next unless /^node/;
 
8
        chop;
 
9
        @a=split;
 
10
        $num{$a[3]}++;
 
11
        }
 
12
 
 
13
@a=sort {$a <=> $b } keys %num;
 
14
foreach (0 .. $a[$#a])
 
15
        {
 
16
        printf "%4d:%4d\n",$_,$num{$_};
 
17
        }