Stripped module

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.
michelu [ Mi, 18 Oktober 2006 19:08 ] [ ID #1505474 ]

Re: Stripped module

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/
Peter Scott [ Do, 19 Oktober 2006 15:51 ] [ ID #1506938 ]
Perl » comp.lang.perl.modules » Stripped module

Vorheriges Thema: Is this bug in Getopt::Std?
Nächstes Thema: Perl Module for S/MIME