Re: Traps for module writers [was: Re: anonymous proxy server in

Chaimf@cris.com
Tue, 26 Nov 1996 10:27:32 -0500 (EST)


Nick Ing-Simmons wrote:
> 
> <Chaimf@cris.com> writes:
> >Why not just a simple module to take care of the localization?
> >
> >	use start_module;
> >
> >All will be set to the defaults for the file.
> 
> Which is completely useless.
> 
> All the traps are 'local' variables and many global to module name-space.
> So if user-code calls you there is no telling that defaults are still 
> in effect. Also that will trample over user's own settings and so break
> her code.

Sorry, I thought the traps listed were recommendations that *all*
of the 'global' values should be localized and set to the perl
defaults.

If I mis-read the traps, then maybe the document needs a bit more
explaination or a pointer.

<chaim>