Main > Programming > Libraries >

ExtUtils::configPL 1.1

ExtUtils::configPL 1.1

Sponsored Links

ExtUtils::configPL 1.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 913
Date added: 2007-05-02
Publisher: Mark Pease

ExtUtils::configPL 1.1 description

ExtUtils::configPL is a Perl extension to automagically configure Perl scripts.

SYNOPSIS

use ExtUtils::configPL;
<<--startperl-->> -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;
<<--startperl-->> -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:

<<--variable-->>

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.

ExtUtils::configPL 1.1 Screenshot

Advertisements

ExtUtils::configPL 1.1 Keywords

Bookmark ExtUtils::configPL 1.1

Hyperlink code:
Link for forum:

ExtUtils::configPL 1.1 Copyright

WareSeeker periodically updates pricing and software information of ExtUtils::configPL 1.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of ExtUtils::configPL 1.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
ExtUtils::F77 is a simple Perl interface to F77 libs. Free Download
ExtUtils::PerlPP is a Perl Preprocessor. Free Download
ExtUtils::CBuilder is a Perl module to compile and link C code for Perl modules. Free Download
ExtUtils::Embed is a Perl module with utilities for embedding Perl in C/C++ applications. Free Download
ExtUtils::ParseXS is a Perl module that converts Perl XS code into C code. Free Download
ExtUtils::AutoInstall is a Perl module to automatic install of dependencies via CPAN. Free Download
ExtUtils::MM_Any is a Perl module with Platform-agnostic MM methods. Free Download
chilli_control is a script that takes a command-line argument telling it what to do with your smoothwall, ie connect, disconnect Free Download