- applied patch by Michael Gray <mjg17@eng.cam.ac.uk> which
	   fixes a bug in the Interpolate.pm submodule. A second variable,
	   when immediately following the first, did not get interpolated,
	   i.e. ${var1}${var2}.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@42 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
Thomas von Dein
2009-10-10 16:26:58 +00:00
parent 5e99e1f8b2
commit 4575d2a052
4 changed files with 23 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
2.16
- applied patch by Michael Gray <mjg17@eng.cam.ac.uk> which
fixes a bug in the Interpolate.pm submodule. A second variable,
when immediately following the first, did not get interpolated,
i.e. ${var1}${var2}.
2.15 - fixed Bug in SaveConfig***, which didn't work. 2.15 - fixed Bug in SaveConfig***, which didn't work.
- applied patch by Robb Canfield <robb@canfield.com>, - applied patch by Robb Canfield <robb@canfield.com>,
which fixes a bug in the variable interpolation which fixes a bug in the variable interpolation

View File

@@ -17,7 +17,7 @@ use strict;
use Carp; use Carp;
use Exporter; use Exporter;
$Config::General::VERSION = "2.15"; $Config::General::VERSION = "2.16";
use vars qw(@ISA @EXPORT); use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter); @ISA = qw(Exporter);
@@ -1800,7 +1800,7 @@ Thomas Linden <tom@daemon.de>
=head1 VERSION =head1 VERSION
2.15 2.16
=cut =cut

View File

@@ -1,5 +1,5 @@
package Config::General::Interpolated; package Config::General::Interpolated;
$Config::General::Interpolated::VERSION = "2.01"; $Config::General::Interpolated::VERSION = "2.02";
use strict; use strict;
use Carp; use Carp;
@@ -33,7 +33,8 @@ sub _set_regex {
# <autrijus@autrijus.org>, and I made some modifications. # <autrijus@autrijus.org>, and I made some modifications.
# thanx, autrijus. :) # thanx, autrijus. :)
my $regex = qr{ my $regex = qr{
(^|[^\\]) # $1: can be the beginning of the line (^|\G|[^\\]) # $1: can be the beginning of the line
# or the beginning of next match
# but can't begin with a '\' # but can't begin with a '\'
\$ # dollar sign \$ # dollar sign
(\{)? # $2: optional opening curly (\{)? # $2: optional opening curly

6
README
View File

@@ -80,11 +80,11 @@ UPDATE
COPYRIGHT COPYRIGHT
Config::General Config::General
Config::General::Extended Config::General::Extended
Copyright (c) 2000-2002 by Thomas Linden <tom@daemon.de> Copyright (c) 2000-2003 by Thomas Linden <tom@daemon.de>
Config::General::Interpolated Config::General::Interpolated
Copyright (c) 2001 by Wei-Hon Chen <plasmaball@pchome.com.tw> Copyright (c) 2001 by Wei-Hon Chen <plasmaball@pchome.com.tw>
Copyright (c) 2002 by Thomas Linden <tom@daemon.de>. Copyright (c) 2002-2003 by Thomas Linden <tom@daemon.de>.
This library is free software; you can redistribute it This library is free software; you can redistribute it
and/or modify it under the same terms as Perl itself. and/or modify it under the same terms as Perl itself.
@@ -104,4 +104,4 @@ AUTHOR
VERSION VERSION
2.14 2.16