Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: ReturnDate.pm

by jdporter (Paladin)
on Sep 28, 2007 at 00:59 UTC ( [id://641444]=note: print w/replies, xml ) Need Help??


in reply to ReturnDate.pm

I could not find anything on CPAN...

That's because it's overkill for a module. As ikegami said:

use Date::Manip; use List::Util qw(reduce); sub earliest { reduce { Date_Cmp( $a , $b ) < 0 ? $a : $b } map { ParseDate($_) } + @_ } sub latest { reduce { Date_Cmp( $a , $b ) > 0 ? $a : $b } map { ParseDate($_) } + @_ } my $e = earliest( @dates ); my $l = latest( @dates );
A word spoken in Mind will reach its own level, in the objective world, by its own weight

Log In?
Username:
Password:

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

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

    No recent polls found