Define a error handler for a module
by Torsten Werner other posts by this author
Jan 9 2008 1:02AM messages near this date
ActiveState releases Perl Dev Kit 7.1 with ActivePerl 5.10 support
|
Re: Define a error handler for a module
Hi all,
I'm looking in the documentation, but I can't find a way to set a parameter
for a module during 'use {module} ...'.
I've a special error handler in a module 'module_a'. In a other module
'module_b' I have a default error handler. I would like overwrite the error
handler of 'module_b' by the error handler of 'module_a' if 'module_b' is
used by 'module_a'. In any other case I would like leave the handler of
'module_b' untouched.
'module_b' has a few helper functions, it does not define a class. Any
error handler has exactly the same definition (sub onError($$$);)
Which possibilities do I have?
Thanks a lot
Torsten Werner
_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Torsten Werner
Jenda Krynicky
Torsten Werner
|