in reply to return $paths only if ...

When I use strict, I get this compile error:
Global symbol "$paths" requires explicit package name at
Change:
my @paths;
to:
my $paths;
That may not solve your problem, but it's a step in the right direction.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.