in reply to Re: Re: How do I make one package use a module from another package?
in thread How do I make one package use a module from another package?
I may have meisunderstood your original post. If you want to use strict; use warnings, why not just do so?
Those 2 things can't be doen from a separate module to affect the calling program - their effect is lexically scoped, so it can apply, at most, to the file it is in.Anyhow, I saw the word "pollute" and thought you were talking about a module that would import from yet other modules and then export to main:: and I can't help thnking that that way lies madness. Large function modules that break things down into smaller modules do so by inheritance, not import/export. Look at LWP::UserAgent for example, and try to find where the headers are set/interpreted, etc.
--Bob Niederman, http://bob-n.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How do I make one package use a module from another package?
by Anonymous Monk on Jul 22, 2003 at 04:28 UTC | |
by bobn (Chaplain) on Jul 22, 2003 at 04:48 UTC | |
by simonm (Vicar) on Jul 22, 2003 at 16:30 UTC |