That's interesting. I would far prefer use Module () since it explicitly says to me "I am deliberately not importing anything' where require Module might be saying any of:
Interesting counter-point. It sounds like a difference either in how we read code or in how we prefer to optimize our code for readability. (Those are similar, but subtly different.)
I would tend to not read anything into require other than its literal meaning and reserve judgement about intent until I see it used later (e.g. import or a function/method call). I would tend to write as I described above to stand out better -- or perhaps write "use Module qw()" for a similarly distinctive effect.
-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.
In reply to Re^4: how NOT to import exported subs/variables from a module?
by xdg
in thread how NOT to import exported subs/variables from a module?
by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |