in reply to Re: how NOT to import exported subs/variables from a module?
in thread how NOT to import exported subs/variables from a module?
The next two lines of that documentation are:
That is exactly equivalent to BEGIN { require Module }
So unless you need the compile time action from BEGIN, plain require works also. It's only one extra character over use with an empty list and I find it stands out better visually as being a module load without import side-effects.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how NOT to import exported subs/variables from a module?
by adrianh (Chancellor) on May 31, 2006 at 12:42 UTC | |
by xdg (Monsignor) on May 31, 2006 at 13:51 UTC | |
by adrianh (Chancellor) on Jun 02, 2006 at 12:34 UTC |