script 24.txt

Download Script 24.Txt

If you can't read please download the document

Upload: toml88

Post on 03-Dec-2015

214 views

Category:

Documents


2 download

DESCRIPTION

v24

TRANSCRIPT

###############use strict;use WWW::Mechanize;use XML::Simple;use Data::Dumper;use HTTP::Cookies;use LWP::Simple;use Term::InKey;use Math::Combinatorics;use FileHandle;use File::stat;use List::Compare;use Win32::Process;use Log::Log4perl qw(:easy);use Archive::Extract;use File::Copy;use Win32API::File::Time qw{:win};use IO::Handle qw( );use POSIX qw(:signal_h :errno_h :sys_wait_h);### Logging info ###$logger->info("Start\n");package Spinner;sub max{ my $array = shift; my @array = @$array; my $index = 1; my $maxval = $array[ $index ]; for ( 1 .. $#array-1 ) { if ( $maxval < $array[$_] ) { $index = $_; $maxval = $array[$_]; } } #print "Max is index $index: $array[$index]\n"; return ($index, $array[$index]);}sub min ###{ my $array = shift; my @array = @$array; my $index = 1; my $minval = $array[ $index ]; for ( 1 .. $#array-1 ) { if ( $minval > $array[$_] ) { $index = $_; $minval = $array[$_]; } } #print "Min is index $index: $array[$index]\n"; return ($index, $array[$index]);}