Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Custom date string formatting

by AltBlue (Chaplain)
on Feb 01, 2007 at 12:33 UTC ( [id://597723]=note: print w/replies, xml ) Need Help??


in reply to Re: Custom date string formatting
in thread Custom date string formatting

you could be even more liberal by using [^\d]+:
sub format_date { return join '.', (split /[^\d]+/, $_[0])[2,1,0]; }

Log In?
Username:
Password:

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

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

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.