Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: formatting dates

by Albannach (Prior)
on Oct 06, 2003 at 13:19 UTC ( #296927=note: print w/replies, xml ) Need Help??


in reply to formatting dates

I would use the regex by reflex, I think the unpack is pretty cool, and for yet more TIMTOWTDI, this is just ammo for those that like to benchmark substr against regexen:
$date = 'yyyymmdd'; substr($date,$_,0) = '-' for(6,4);
Update: stupid typo fixed

--
I'd like to be able to assign to an luser

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296927]
help
Chatterbox?
choroba still has one more.
[Corion]: I have Thursday and Friday off, so then I might get to converting the rough outlines to more articles ;)
[Corion]: But currently, most of the modules are web-related and I don't like to publish two web articles in a row
[Corion]: Maybe I should do the Filter::Simple release on the next weeked - this would give me one more article to milk from this theme

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-04-24 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (437 votes). Check out past polls.