Just general rambles about your reply (which is merely a cheap way to mention something I did in VBScript :)
I prefer YY/MM/DD or YYYY/MM/DD since sorting is much easier. It may not seem like a big deal to Perl users, but imagine if others are forced to manipulate data in other languages, such as VBScript, which doesn't have native sorting.*
In any event, even with Perl's robust sorting abilities, having a straight-forward sort on the dates is much easier to read than a lot of weird maps or greps or other things. Of course, if I have complex sorting, I usually stick it in a function with a descriptive function name.
Cheers,
Ovid
* I kind of feel sorry for some of the VBScript programmers I left behind. I am so used to shift, pop, sort, and so many other handy tools to use with lists and arrays that I wrote a "Perl functions" library in VBScript. Much of my VBScript code read like "baby Perl" (though only in parts where I thought the overhead wouldn't kill a language that was not designed for such functions).
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.In reply to (Ovid) Re: Who came up with MM/DD/YY anyway?
by Ovid
in thread Packing HTML Paths
by skreuzer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |