Skip Menu |

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 48176
Status: new
Priority: 0/
Queue: AppConfig

Owner: Nobody in particular
Requestors: miguel [...]

Bug Information
Severity: Normal
Broken in: 1.66
Fixed in: (no value)

Subject: Variables not being created when using AppConfig::Args
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 663
Download (untitled) / with headers
text/plain 663b
The behavior of AppConfig::Args module does not match what the documentation states. If you create a state with { GLOBAL=>{CREATE=>1} }, then variables that are not defined should be created automagically. (If I understand correctly) When using AppConfig::File::parse, the behavior is correct. However, when using AppConfig:Args::parse the behavior is incorrect. I fixed this myself locally by changing AppConfig/ from if ($state->_exists($variable)) { to if ($state->_exists($variable) || $state->set($variable) ) I am not sure if this is the best way to solve the problem. I just did it that way based on how you did it on

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to