Software Index
Linux Software Utilities  

ExtUtils::configPL

download download home home   report broken
important software information
company name:
Mark Pease
license: Freeware
minimum requirements:
functional limitations:
ExtUtils::configPL description
ExtUtils::configPL is a Perl extension to automagically configure Perl scripts.

SYNOPSIS

use ExtUtils::configPL;
-w
...

no ExtUtils::configPL;

...

This module is used to add configuration information to a perl script, and is meant to be used with the ExtUtils::MakeMaker module.

ExtUtils::configPL is not a "normal" Perl extension. It does add or encapsulate functionality to your script, but it filters the script, replacing tags with items from the Config module, writing the resulting script to a new file.

The normal use for this module is to add the "shebang" line as the first line of a script.

use ExtUtils::ConfigPL;
-w

would be replaced with:

#/usr/local/bin/perl -w

(or where ever your perl executable is located.)

The use ExtUtils::configPL; line must be the first line in the script! Anything that comes before that line will not be in the filtered script.

This module is intended to work with ExtUtils::MakeMaker. You would create your script, as above, with the .PL extension, and add a PL_FILE option to the WriteMakefile() call (see ExtUtils::MakeMaker for more details.)

For example:

'PL_FILES' => { 'foo.PL' => 'foo.pl' }

Creating the Makefile would create a rule that would call your script like:
$(PERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB)

foo.PL foo.pl

although the line could be as simple as:

perl foo.PL foo.pl

ExtUtils::configPL takes the first argument, and uses it as the name of filtered script, and will write the new script into it.

TAGS

Tags are use to mark the location that a substitution will be made. By default, tags are in the form of:



where the variable is one of the Config.pm variables.

The tag will be replaced anywhere it is found in the script. You can stop the substitution in a section of the script by surrounding the section like:

no ExtUtils::configPL;
...
# Nothing will be substituted.
...
use ExtUtils::configPL;
...
# Substituting is resumed.

The use and no lines above are removed from the filtered script so that, when you run the script, ExtUtils::configPL will not be re-ran.. The CPAN Search Site - search.cpan.org. Publisher of ExtUtils::configPL, Author of ExtUtils::configPL 1.1. ExtUtils::configPL is a Perl extension to automagically configure Perl scripts. SYNOPSIS use ExtUtils::configPL; -w ... no ExtUtils::configPL; ... This module is used to add configuration in
Similar software
ExactImage (Popularity: ) : Exact Image is a fast (and soon modern and generic) image processing library. For a client we had to optimize the insane time imagemagick spent on certain image processing tasks. After the first code review it became clear that imagemagick ...
Elementary Remix (Popularity: ) : Elementary Remix is just a simple remix of the Elementary theme by DanRabbit.

Developer comments

I changed the color of the text panels, and color of the panel. Just made no big adjustments to the gtk and emerald. You can use the ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar scripts
Module::Build (Popularity: ) : Module::Build is a pure-perl replacement for the ExtUtils::MakeMaker module. It performs several actions during compilation, testing, and installation of modules. It also performs several tasks useful to module authors, such as testing and bundling a
Rate me
supported os's
stats
downloads 4
version 1.1
size in Kb 10
popularity   
1033/1272475
user rating 0/10
our rating 0 Stars
share info
Recommend ExtUtils::configPL
Report spyware
New Software
Popular Software
Latest Reviews