[lug] Perl Question..

Joseph McDonald joem at uu.net
Thu Apr 17 21:07:08 MDT 2003


On Thu, Apr 17, 2003 at 07:37:05PM -0600, Tkil wrote:
> >>>>> "Joey" == Joseph McDonald <joem at uu.net> writes:
> 
> Joey> Well, that is a good point. A seperate process creates monthly
> Joey> reporting files in a directory and it names them something like
> Joey> this: '$month.$year.html'.
> 
> If you have *any* influence over this process, do yourself (and your
> company) a favor by converting to the ISO-8601 date format:

This I did realize but I'm not responsible for the process
that creates the files (I also thought it would be fun to
figure it out).

> In this case, using "YYYY-MM" (all numeric) would have made this a
> non-problem, as that would sort properly even with a simple
> lexigraphic sort.
> 
> Joey> I was initially working on a predefined hash, but I ended up
> Joey> reading up on sort() and came up with this:
> 
> Various meditations.

This is a fabulous analysis and it's going to take me a few
days (weeks?) to digest, but digest it I will. It's exactly 
the reason I subscribe to this list. I appreciate you're
time and input!

	--joey




More information about the LUG mailing list