Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Coolest way to decode YYYYMMDD?

by ikegami (Pope)
on Jun 03, 2013 at 06:43 UTC ( #1036676=note: print w/ replies, xml ) Need Help??

in reply to Re: Coolest way to decode YYYYMMDD?
in thread Coolest way to decode YYYYMMDD?

You can disable a prototype rather than bending over backwards to comply to it.

use DateTime qw( ); use List::MoreUtils qw( mesh ); my $string = "19830501"; my $date = DateTime->new(&mesh( [qw( year month day )] => [ unpack "A4A2A2", $string ] ));

Comment on Re^2: Coolest way to decode YYYYMMDD?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2015-11-27 07:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls