Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 imbibing at the Monastery: (3)
As of 2025-07-08 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.