[ must stop replying to self like the big freak that I am ... ]

On Sat, 11 Jan 2003, Dave Rolsky wrote:

> Right now, this module occasionally warns or carps about bad parameters,
> and then returns undef.  I'm not a big fan of warnings in modules myself.
> I prefer to either simply return an indication of failure (undef, 0,
> whatever) _or_ to throw an exception with a detailed message.

I should point out that when I say "throw an exception", I mean call
die().  Whether die() is called with a string or an object is not all that
important, particularly when the object has reasonable stringification
(like Exception::Class provides, hint hint ;)


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to