Subject: | Inconsistent output in $(perlbrew installed) |
In App::perlbrew::run_command_installed() you only check for -x, which
also returns "Any directory that contains a subdirectory named perl"
for ( grep { -x $_ && !-l $_ } map { "$_/perl" } split(":", $ENV{PATH}) ) {
should become
for ( grep { -f $_ && -x $_ } map { "$_/perl" } split(":", $ENV{PATH}) ) {
Also the current logic does nothing to exclude
~/perl5/perlbrew/perls/current/bin/perl
which is *always* in PATH by virtue of the perlbrew script sourcing