When there is no value defined for a parameter the
method "val" always returns undef. If val was called
in list context the result will be a list with one
element (undef) instead of an empty list.
As a result you can not use the construction:
if (my @v = $cfg->val('x','y')) { ... }
Attached file shows the change
Anonymous
config-inifile diff
config-inifile diff
Logged In: YES
user_id=818417
Oeps, looks like I overlooked the case of array context with
a single value parameter. FIxed in new diff.
Thanks! Fixed in SVN in revision 88 (along with a testcase that I wrote).
Closing as fixed.