Peter Rabbitson wrote:
> Hello everyone, 
> My question is - is this too simple to be true? I suspect this is probably 
> not thread-safe (not that I know much about threads anyway), but are there 
> any other obvious shortcommings that I am missing? Maybe there is a well 
> developed framework to handle problems like mine and I am reinventing the 
> wheel due to lack of knowingbetterness? 
> 
> I would appreciate any comments/suggestions/reading references.
>

You should look into Exceptions.  There is an old article from perl.com
on the subject:

http://www.perl.com/pub/a/2002/11/14/exception.html

Some of the modules may have changed since that was published but it is
a good starting source to see if you like that model.

There is also the Exception and Exception::Class docs on CPAN that might
be another good place to start.

> Thank You
> 
> Peter
> 

HTH,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to