in reply to Re3: Date Regex
in thread Date Regex

There is something worrying about what you are saying... all incoming data is an "irregular format", if you get something that you don't expect then your program should be robust enough to handle that in a way that is appropriate to the application. If the incoming data suddenly changes to using Klingon time then things will break how ever you parse it.

--
Life is a tale told by an idiot -- full of sound and fury, signifying nothing. William Shakespeare, Macbeth

Replies are listed 'Best First'.
Re5: Date Regex
by dragonchild (Archbishop) on Mar 27, 2003 at 15:04 UTC
    If you're using Date::Calc and it handles Klingon time, then your application will now be able to parse and work with Klingon time, without you having to do a thing. That's the point behind using modules. It's code that does more than you ever hoped without you having to lift a finger in support.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.