The main purpose would be to avoid loading/compiling a module until when one of its subroutines was actually called.
Not quite in the way you've outlined, but the (core) module autouse does that:
NAMEautouse - postpone load of modules until a function is used
In reply to Re: lazy loading of modules
by shmem
in thread lazy loading of modules
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |