Subject: | _env_list_value tries to split existing but undefined environment variables |
_env_list_value doesn't recognize an existing but undefined environment variable and tries to split it at line 408, resulting in a warning. (This happens when called by perlbrew with an environment variable set to undef to deactivate it.)
407 if (ref $_ eq 'SCALAR' && $options{interpolate} == INTERPOLATE_ENV) {
408 exists $ENV{${$_}} ? (split /\Q$Config{path_sep}/, $ENV{${$_}}) : ()
409 } else {
410 $_
411 }
Adding a defined check
408 exists $ENV{${$_}} && defined $ENV{${$_}} ? (split /\Q$Config{path_sep}/, $ENV{${$_}}) : ()
should fix it.