Translates Text+Perl to Text. It can be used for any kind of text templating, e.g. code generation. No external modules are required, just a single file. Requires Perl 5.10.1+. PerlPP runs in two passes: it generates a Perl script from your input, and then it runs the generated script. If you see error at (eval ##) (for some number ##), it means there was an error in the generated script. The -D switch defines elements of %D. If you do not specify a value, the value true (a constant in the generated script) will be used. The following commands work mostly analogously to their C preprocessor counterparts. but $fn can be determined programmatically. Note that defines set with -D or -s do not take effect until after the script has been generated, which is after the macro code runs.

Features

  • The syntax is a bit similar to PHP
  • There are several modes, indicated by the character
  • The generated script is in its own package, named based on the input filename and a unique number
  • Loop with less whitespace
  • Internal and external commands
  • C Preprocessor Emulation

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PerlPP

PerlPP Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PerlPP!

Additional Project Details

Programming Language

Perl

Related Categories

Perl AI Text Generators, Perl Generative AI

Registered

2023-03-23