The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Placeholder::Perl_Inlined - execute Perl code

SYNOPSIS

        use Text::Placeholder;
        my $placeholder = Text::Placeholder->new(
                my $counter = '::Perl_Inlined');
        $placeholder->compile('Result: [= return("Hello World.") =]');

        print ${$placeholder->execute()}, "<-\n";

DESCRIPTION

Adding this placeholder group may be a security risk depending on the actual use. It's only a proof-of-concept module.

Text::Placeholder::Perl_Inlined provides no specific placeholders. Instead any placeholder is treated as perl code.

METHOD REFERENCE (API)

clear

Clears the three generic lexicals $data, @data and %data.

subject($code)

Sets or gets the code to be executed.

KNOWN BUGS AND LIMITATIONS

This is the first public release.

AUTHOR

Winfried Trumper <pub+perl(a)wt.tuxomania.net>

COPYRIGHT AND LICENSE

Copyright (C) 2011 Winfried Trumper

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.