Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by haukex (Archbishop)
on Jan 18, 2022 at 17:46 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-18 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found