Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Find maximum (Activity) date from array hash.

by Sami_R (Sexton)
on Jun 02, 2020 at 19:54 UTC ( [id://11117606]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    my @array_data;
    
  2. or download this
     
    foreach my $hash (@array_data) {
        $logger->log( "HASH NOW: =====>  ". Dumper($hash));
      }
    
  3. or download this
     
    HASH NOW: =====> $VAR1 = {
              'Name' => 'First Segment',
    ...
              'Activity Date' => '21/04/2020',
             'Total Commission' => 0,
            };
    
  4. or download this
     
    my $activity_date = $hash->{'Activity Date'};
    
    print “Activity date:  $activity_date”;
    
  5. or download this
    my $max_date = 0;
    $_ > $max_date and $max_date = $_ for values @array_data;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11117606]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found