in reply to sorted HoA, now what?

See update 5 at Re: sorted HoA, now what?.

Replies are listed 'Best First'.
Re^2: sorted HoA, now what?
by teamassociated (Sexton) on Nov 23, 2015 at 15:26 UTC
    sorry I had a __DATA__ section I had forgot to include the output in the original node called 'current desired output.' FYI I am using the find module to get the latest log files for the comparisons. Comparisons need to happen twice total, once for each pair of VIO servers. Yes your code works just fine to get a solid starting point. But here is my scratch code under __DATA__ using HoA. Thank you!!!
    File::Find::finddepth({'wanted', \&__wanted15B}, '/opt/r2configs/vios1 +5b'); sub __wanted15B { use strict 'refs'; my($dev, $ino, $mode, $nlink, $uid, $gid); $lsmap15b = $name if ($dev, $ino, $mode, $nlink, $uid, $gid) = lst +at $_ and int -M(_) <= $minutes * 60 and /^lsmap-all\.out\z/s; } __DATA__ use Data::Dumper; print Dumper \%lsmap15a; print "\n============================================================= +==\n"; print Dumper \%lsmap15b; #for my $clientdata16A ( sort keys %lsmap16a ) { # print RLOG join ("\n\n", "$clientdata16A\t==>\n\t@{$lsmap16a{$clie +ntdata16A}}\n\n"); #} # #for my $clientdata16B ( sort keys %lsmap16b ) { # print RLOG join ("\n\n", "$clientdata16B\t==>\n\t@{$lsmap16b{$clie +ntdata16B}}\n\n"); #} for my $clientdataA ( sort keys %lsmap15a ) { print RLOG join ("\n\n", "$clientdataA\t==>\n\t@{$lsmap15a{$clientd +ataA}}\n\n"); } #for my $clientdataB ( sort keys %lsmap15b ) { # print RLOG join ("\n\n", "$clientdataB\t==>\n\t@{$lsmap15b{$client +dataB}}\n\n"); #} print "=" x100,"\n\n"; #foreach( # sort { $a->[1] cmp $b->[1] } # map { [ $_, $lsmap15a{$_}->[1] ] } keys %lsmap15a) { # print join "\n", $_->[0],' => ',@{$lsmap15a{$_->[0]} # }; # print "\n\n"; #} foreach( sort { $a->[1] cmp $b->[1] } map { [ $_, $lsmap15a{$_}->[1] ] } keys %lsmap15a) { print join "\n", $_->[0],' => ',@{$lsmap15a{$_->[0]} }; print "\n\n"; }