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

No, the empty list is only used when a calling script cannot provide a valid path for the subroutine. Then the sub performs a more costly search on the system.

Replies are listed 'Best First'.
Re^3: random undefined sub error
by LanX (Saint) on Apr 10, 2013 at 14:47 UTC

    > 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)

Re^3: random undefined sub error
by jerick1976 (Initiate) on Apr 10, 2013 at 14:56 UTC
    DOH. think before I type.... Yes I generally do use an empty list in the use statement and call just what I need when I need it within the code.