mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-17 04:31:00 +01:00
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}. git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@42 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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,16 +33,17 @@ 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
|
||||||
# but can't begin with a '\'
|
# or the beginning of next match
|
||||||
\$ # dollar sign
|
# but can't begin with a '\'
|
||||||
(\{)? # $2: optional opening curly
|
\$ # dollar sign
|
||||||
([a-zA-Z_]\w*) # $3: capturing variable name
|
(\{)? # $2: optional opening curly
|
||||||
(
|
([a-zA-Z_]\w*) # $3: capturing variable name
|
||||||
?(2) # $4: if there's the opening curly...
|
(
|
||||||
\} # ... match closing curly
|
?(2) # $4: if there's the opening curly...
|
||||||
)
|
\} # ... match closing curly
|
||||||
}x;
|
)
|
||||||
|
}x;
|
||||||
return $regex;
|
return $regex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
6
README
6
README
@@ -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
|
||||||
Reference in New Issue
Block a user