in reply to USE or Require?
False dilemma.
use happens at compile-time while require happens at run-time. There's a big difference. You can also control what's imported into your namespace by providing arguments to use — besides that, there's no reason import() has to export anything. Several modules use different behavior based on what you pass to import(), and if you only use your "precise" require, you'll miss out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: USE or Require?
by diotalevi (Canon) on Jul 22, 2003 at 22:54 UTC | |
|
Re: Re: USE or Require?
by BUU (Prior) on Jul 23, 2003 at 02:23 UTC | |
by chromatic (Archbishop) on Jul 23, 2003 at 03:01 UTC | |
by ihb (Deacon) on Jul 23, 2003 at 08:57 UTC | |
by demerphq (Chancellor) on Jul 23, 2003 at 18:28 UTC |