Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: sorted HoA, now what?

by u65 (Chaplain)
on Nov 21, 2015 at 19:22 UTC ( #1148318=note: print w/replies, xml ) Need Help??


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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1148318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-05-18 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (176 votes). Check out past polls.

    Notices?