On Fri, Feb 01, 2002 at 12:27:03AM -0800, Yitzchak Scott-Thoennes wrote: > >> But in some ways the regexp solutions are better since they'll leave > >> more malformed strings alone. > > > >Yay! Silently failing code! > > Better something that leaves $date = 'unexpected garbage' alone than > converts it to 00/00/0.
Better not to try and delude ourselves that any of these solutions are addressing error handling or formatting problems. Its outside the scope of the discussion. > In my first programming job, one of the more experienced programmers > taught me "never check for an error condition you don't know how to > handle." Words to live by. :) I have to keep reminding myself this is FWP. When I saw the original post I thought it was Belfast.pm for some reason. [1] [1] That's not a slag on Belfast.pm. There's been a spurt of help messages on that list lately, so I assumed this was one of them. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One kiloconway: unit of extreme mind expansion. Equal to 1024 conways, one kiloconway gives the sensation that all of the quantuum particles in your brain have been spontaneously converted into Mars bars (IN CONSTANT TIME!). The presumed existance of kiloconway scale events has led many to believe that higher forms of intelligence do in fact exist, and are living quite happily in Rural Australia. -- Ziggy