I don't think there is a situation where you would want to, by default, load in every module in a directory.
Frankly, just because you don't see a reason for it, someone else may have a perfectly valid reason. In fact, I there is at least one good reason to do this: testing that all modules in a directory will load.
Also, as another poster pointed out, this is supported by default in other languages, like Java:
import java.io.*;
Which is a case of Java supporting more laziness than Perl (a case which is quite rare).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: Being helpful to a fault?
by hardburn
in thread Being helpful to a fault?
by graff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |