[Oscar-devel] Fix to oscar_wizard ^* matches null string many times in regex startup warning.
by Olivier LAHAYE
 |
REPLY TO AUTHOR
|
 |
|
|
 |
REPLY TO GROUP
|
 |
|
Hi,
Here are 2 patches:
- one for oscar_wizard that adds few debug messages if --debug option is used
- second one: ConfigFile.pm fixes the startup warning.
As I'm perl newbee, please check that I'm correct as I'm not sure of the impact.
I've read that AppConfig CREATE enable automatic creation of variables from config file if value is 1 and or a regexp.
if it's a regexp, then only variable names matching the regexps gets created.
^* means nothing to me (is it all lines having at least one beginning??? or is it all lignes starting with an asterisk (grep behaviour)....
I've replaced this with "^.*" but I may be wrong. In that case, what is the correct value to avoid the warning?
The log of the fixed error:
=============================================================================
== oscar_wizard: Starting...
=============================================================================
^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE / at /usr/lib/perl5/vendor_perl/5.8.8/AppConfig/State.pm line 315, <FH> line 15.
^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE / at /usr/lib/perl5/vendor_perl/5.8.8/AppConfig/State.pm line 395.
Best regards.
--
Olivier LAHAYE
CEA Saclay
DRT-LIST-DETECS-SSTM
Bookmark with:
Delicious
Digg
reddit
Facebook
StumbleUpon
Related Messages
opensubscriber is not affiliated with the authors of this message nor responsible for its content.
|