#! /usr/bin/perl use strict; use warnings; use Getopt::Std; use Math::BigInt; my %from_hash; my %to_hash; my $cnt = 0; my $sort_val = 0; my $max_cnt = 0; my %args; my $start_time; my $min_thresh = 0; my $max_thresh = 0; my $start_date; my $end_date; my $total_in = new Math::BigInt '0'; my $total_out = new Math::BigInt '0'; my $num_total_in = new Math::BigInt '0'; my $num_total_out = new Math::BigInt '0'; my $temp_out = new Math::BigInt '0'; my $temp_in = new Math::BigInt '0'; my $num_temp_out = new Math::BigInt '0'; my $num_temp_in = new Math::BigInt '0'; my $big_zero = new Math::BigInt '0'; my $str_out; my $abridged = 1; my @keys; # Usage sub usage { my $name = $0; $name =~ s/^(.*)\\//; print STDERR "\nUsage:\n"; print STDERR "\t$name \n"; print STDERR "\t\tDate format = yyyy-mm-dd (eg: 2004-06-08)\n"; print STDERR "\t$name -f \n\n"; print STDERR "Optional parameters:\n"; print STDERR "\t[-l ] [-s