mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-16 20:21:01 +01:00
2.29
- applied patch by brian@kronos.com via rt.cpan.org #11211. - applied patch by plasmaball@pchome.com.tw via rt.cpan.org #5846 - added new files to MANIFEST file. - added example.cfg to show the config format. git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@55 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
@@ -26,7 +26,7 @@ use Carp::Heavy;
|
||||
use Carp;
|
||||
use Exporter;
|
||||
|
||||
$Config::General::VERSION = "2.28";
|
||||
$Config::General::VERSION = "2.29";
|
||||
|
||||
use vars qw(@ISA @EXPORT);
|
||||
@ISA = qw(Exporter);
|
||||
@@ -86,6 +86,7 @@ sub new {
|
||||
|
||||
parsed => 0, # internal state stuff for variable interpolation
|
||||
upperkey => "",
|
||||
upperkeys => [],
|
||||
lastkey => "",
|
||||
prevkey => " ",
|
||||
files => {}, # which files we have read, if any
|
||||
@@ -771,7 +772,7 @@ sub _parse {
|
||||
|
||||
sub _savelast {
|
||||
my($this, $key) = @_;
|
||||
$this->{upperkey} = $this->{lastkey};
|
||||
push(@{$this->{upperkeys}}, $this->{lastkey});
|
||||
$this->{lastkey} = $this->{prevkey};
|
||||
$this->{prevkey} = $key;
|
||||
}
|
||||
@@ -779,7 +780,7 @@ sub _savelast {
|
||||
sub _backlast {
|
||||
my($this, $key) = @_;
|
||||
$this->{prevkey} = $this->{lastkey};
|
||||
$this->{lastkey} = $this->{upperkey};
|
||||
$this->{lastkey} = pop(@{$this->{upperkeys}});
|
||||
}
|
||||
|
||||
sub _parse_value {
|
||||
@@ -2069,7 +2070,7 @@ Thomas Linden <tom@daemon.de>
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
2.28
|
||||
2.29
|
||||
|
||||
=cut
|
||||
|
||||
|
||||
Reference in New Issue
Block a user