Subject: | with CREATE=0 variables with a 0 still get created |
When parsing a file using CREATE=0 (so no automatic creation of
variables should be done)
any variable that has a name containing a 0 (zero) gets auto-created
nevertheless.
This bug is caused by a condition in AppConfig/State.pm.
At about line 20 of the 'set' function there is the test:
if (defined $create
&& ($create eq '1' || $variable =~ /$create/)) {
.... then auto create ...
I find that with CREATE is not set or set to 0, then $create is defined
and has the value 0. So any variable name that matches /0/ is
autocreated.
I don't see the reason for the '|| $variable =~ /$create/' part. I think
it should be removed.