* "append" causes appends array exports from multiple searches using
the same variable to append (vs. overwrite) their values. default
is old behavior (i.e., "noappend" which overwrites).
* "scalar" seems to work; update POD so that people know to use it.
Updating during the freeze because it's nearly a leaf, and the only
depending package (p5-Test-BDD-Cucumber) still passes its self-tests.
2.07 Mon Jul 28 02:48:49 CDT 2014
Try one more time to deal with version issues.
2.01 Sat Jul 26 01:52:46 CDT 2014
Version numbers now come from the current build rather than Makefile.PL.
Upping the version to v2.00 makes it easier to keep track of it all.
Makefile uses stringy, .pm uses v-string.
Hopefully that will keep everyone happy.
For libs_curr:
Avoid truncating dirent's with embedded newlines in taint-hack
by using single-line mode: m{ (.+) }xs
Add "scalar" option to export the first directory found only as
a scalar (vs list). Mainly useful with things like config dir's
where the first one will always be used in any case:
use FindBin::libs qw( base=etc scalar );
exports "$etc" rather than "@etc" (saves using $etc[0]
everyplace). Also works with
use FindBin::libs qw( base=etc export=config scalar );
to export $config rather than an array.
Added some examples.
Replace given block to avoid nastygrams from post-5.16 perls.
Add stub libs.pm as placeholder for version.
Finally remembered to fix typo (thanks to x.guimard).
1.11 Wed Jul 2 22:34:00 CDT 2014
R.I.P. Build.PL.
see Makefile.PL
Fix broken assignment of rel2abs from Cwd rather than
File::Spec::Functions.
Add test for abs_path or rel2abs surviving both '//' and 'cwd' --
if neither of them is available or working the rest of this is
a waste.
Note: I don't have access to windows for testing. If any of this
fails please contact me and we can figure out what is wrong.
1.9.1 Tue May 27 08:20:41 CDT 2014
Minor cleanup blows up in 5.12; works in 5.14. Given that 5.20 is
about to be on the street: the current version is pushed
up to 5.14 (i.e., if ref $^V and v5.14 le $^V then the
installed version is *_curr, otherwise it is *_5_8).
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package
Like last time, where this caused no complaints.
An all-too-common occurrance managing perly projects is being unable
to install new modules becuse "it might break things", and being
unable to test them because you can't install them. The usual outcome
of this is a collection of hard-coded
use lib qw( /usr/local/projectX ... )
code at the top of each #! file that has to be updated by hand for
each new project.
To get away from this you'll often see relative paths for the lib's,
which require running the code from one specific place. All this
does is push the hard-coding into cron, shell wrappers, and begin
blocks.
With FindBin::libs you need suffer no more.