Text::Placeholder::Group::Perl_Inlined - execute Perl code
use Text::Placeholder; my $placeholder = Text::Placeholder->new( my $counter = '::Perl_Inlined'); $placeholder->compile('Result: [= return("Hello World.") =]'); print ${$placeholder->execute()}, "<-\n";
Adding this placeholder group may be a security risk depending on the actual use. It's only a proof-of-concept module.
Text::Placeholder::Group::Perl_Inlined provides no specific placeholders. Instead any placeholder is treated as perl code.
Clears the three generic lexicals $data, @data and %data.
Sets or gets the code to be executed.
This is the first public release.
Winfried Trumper <pub+perl(a)wt.tuxomania.net>
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.
To install Text::Placeholder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Placeholder
CPAN shell
perl -MCPAN -e shell install Text::Placeholder
For more information on module installation, please visit the detailed CPAN module installation guide.