in reply to Re^2: random undefined sub error
in thread random undefined sub error

> Then the sub performs a more costly search on the system.

well this fragile construct is most likely the source of your problems. Good luck tracking!

Simple solution: avoid naming your local sub like an (potentially) imported one.

Cheers Rolf

( addicted to the Perl Programming Language)