Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Get most recent data based on a date from an array of hashes.

by haukex (Bishop)
on Jan 18, 2022 at 17:46 UTC ( #11140573=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_->{TimePiece} = Time::Piece->strptime($_->{Date}, '%m-%d-%Y') for @$
    +data;
    my @filtered = sort { $a->{TimePiece} <=> $b->{TimePiece} } @$data;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2022-07-07 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?