in reply to return $paths only if ...

Try checking for elements inside the array, not for definedness. For example, if ($#{$paths} > -1) { ... }.
Sorry if my advice was wrong.

Replies are listed 'Best First'.
Re^2: return $paths only if ...
by chromatic (Archbishop) on Aug 20, 2012 at 16:33 UTC