| Module-Compile-Simple documentation | Contained in the Module-Compile-Simple distribution. |
Module::Compile::Simple - Even Simpler Perl Module Compilation
package Foo;
use Module::Compile::Simple;
transform($source);
In Bar.pm
package Bar;
use Foo;
...
no Foo
Module::Compile::Simple makes it easier to write Module::Compile
modules, doing compile-time source filtering.
After using Module::Compile::Simple, apply transformation on
$source.
Make this work:
use Module::Compile::Simple '$source';
Chia-liang Kao <clkao@clkao.org>
Copyright (c) 2006. Chia-liang Kao. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Module-Compile-Simple documentation | Contained in the Module-Compile-Simple distribution. |
package Module::Compile::Simple; use 5.006001; use strict; use warnings; our $VERSION = '0.24'; use Module::Compile -base; sub pmc_compile { my ($class, $source) = @_; return "use 5.006001; use strict; use warnings; use Module::Compile -base; sub pmc_compile { my (\$class, \$source) = \@_; $source; } 1; " } 1; __END__
=cut