Stripped module

Stripped module

am 18.10.2006 19:08:35 von michelu

Hi,
with the options you don't use, is there a way to strip the code off
a module?
For sensitive parts, I prefer to rewrite only the code needed instead
of use a module, the code is smaller and faster.
When your module has a lot of options you could declare the options
used and put directives in the code to strip it off. So your code would
be smaller and your module loads only the useful modules.
Is perl6 able to do this?
Michel.

Re: Stripped module

am 19.10.2006 15:51:04 von Peter Scott

On Wed, 18 Oct 2006 10:08:35 -0700, michelu wrote:
> with the options you don't use, is there a way to strip the code off
> a module?
> For sensitive parts, I prefer to rewrite only the code needed instead
> of use a module, the code is smaller and faster.
> When your module has a lot of options you could declare the options
> used and put directives in the code to strip it off. So your code would
> be smaller and your module loads only the useful modules.
> Is perl6 able to do this?

Perl 5 can do it. perldoc AutoLoader.

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/