|
| 1 | +Text-PerlPP - a Perl preprocessor |
| 2 | + |
| 3 | +Translates text files with embedded Perl code to plain text files. |
| 4 | +See README.md for details. A simple example: |
| 5 | + |
| 6 | + <? my $x = 42; ?><?! echo Hello, World! ?><?= $x ?> |
| 7 | + |
| 8 | +will output |
| 9 | + |
| 10 | + Hello, World! |
| 11 | + 42 |
| 12 | + |
| 13 | +<? ... ?> is a Perl code chunk, <?! ... ?> runs an external command, and |
| 14 | +<?= ... ?> prints a Perl expression. There are more commands, listed in |
| 15 | +README.md. |
| 16 | + |
| 17 | +REQUIRES |
| 18 | + |
| 19 | +Perl 5.10+ and Getopt::Long 2.50. There is a fatpacked version that |
| 20 | +already includes Getopt::Long in the GitHub releases archive: |
| 21 | +https://github.com/interpreters/perlpp/releases |
| 22 | + |
| 23 | +INSTALLATION |
| 24 | + |
| 25 | +Easy installation, using App::cpanminus: |
| 26 | + |
| 27 | + cpanm Text::PerlPP |
| 28 | + |
| 29 | +Easy installation, using the release from GitHub: |
| 30 | + |
| 31 | + - Copy the release file to a directory in your PATH |
| 32 | + |
| 33 | +Slightly less easy installation, using ExtUtils::MakeMaker: |
| 34 | + |
| 35 | + - Unpack the tarball |
| 36 | + - In the resulting directory, run the following commands: |
| 37 | + |
| 38 | + perl Makefile.PL |
| 39 | + make |
| 40 | + make test |
| 41 | + make install |
| 42 | + |
| 43 | +Yet another alternative way of installing |
| 44 | + |
| 45 | + - Copy lib/Text/PerlPP.pm to a directory in your @INC |
| 46 | + - Copy bin/perlpp to a directory in your PATH. |
| 47 | + |
| 48 | +SUPPORT AND DOCUMENTATION |
| 49 | + |
| 50 | +After installing, you can find documentation for this module with the |
| 51 | +perldoc command. |
| 52 | + |
| 53 | + perldoc Text::PerlPP |
| 54 | + |
| 55 | +You can also look for information at: |
| 56 | + |
| 57 | + GitHub (report bugs here) |
| 58 | + https://github.com/interpreters/perlpp |
| 59 | + |
| 60 | + AnnoCPAN, Annotated CPAN documentation |
| 61 | + http://annocpan.org/dist/Text-PerlPP |
| 62 | + |
| 63 | + CPAN Ratings |
| 64 | + http://cpanratings.perl.org/d/Text-PerlPP |
| 65 | + |
| 66 | + Search CPAN |
| 67 | + http://search.cpan.org/dist/Text-PerlPP/ |
| 68 | + |
| 69 | +LICENSE AND COPYRIGHT |
| 70 | + |
| 71 | +Copyright 2013-2018 Andrey Shubin and Christopher White. |
| 72 | + |
| 73 | +This program is distributed under the MIT (X11) License: |
| 74 | +http://www.opensource.org/licenses/mit-license.php |
| 75 | + |
| 76 | +See LICENSE for full details. |
| 77 | + |
0 commit comments