Name : perl-ExtUtils-PerlPP
| |
Version : 0.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 8.69
| Date : 2024-08-05 17:49:49
|
Group : Development/Libraries/Perl
| Source RPM : perl-ExtUtils-PerlPP-0.03-8.69.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : Perl Preprocessor
|
Description :
Perl\'s installation suite, ExtUtils::MakeMaker, contains a mechanism for installing preparsed files, so-called _PL_ files: If the MakeMaker utility detects files with the extension \'.PL\' then these files are executed by _make_, usually creating a file of the same name, except the \'.PL\' extension.
Writing these PL files is usually always the same, for example a typical \'.PL\' file might look like this:
my $script = < < \'SCRIPT\'; ... # True file following here SCRIPT
...
if (!open(FILE, \">file\") || !(print FILE $script) || !close(FILE)) { die \"Cannot write file: $!\"; }
But in essence, what else is this than a Perl preprocessor?
Traditionally you have to write such a Perl preprocessor for yourself all the time, although I have found that they always do the same, for example:
* -
Fix defaults, for example installation paths.
* -
Including or excluding code sections. It is a matter of taste whether one likes to see
if ($] < 5.003) { ... } else { ... }
when already using Perl 5.005. I don\'t.
This module is dedicated to simplify such tasks. In short, you can use it like this:
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-E/openSUSE_Tumbleweed/noarch |