Subject: | refs in @INC are stringified and cause shell syntax errors |
When running Test::Harness, while @INC has a code reference in it, the code reference gets stringified into CODE(0xdecaf), which generates something like this:
[syeeda:~] nothingmuch % perl -Iblib -ICODE(0xdecaf)
-bash: syntax error near unexpected token `('
a proposed fix is to have _filter_INC also make sure that
@inc = grep { !ref } @inc;
And if you're feeling tidy, to make sure perl is not executed through a shell.
If I find more time today I'll try and rummage through the docs and all else, to see if that needs patching too, and then submit something more than whyning.
Ciao!