in reply to random undefined sub error

is this line 13?

> my $storage = select_storage();

do you really use the same gitadm_shell_commands.pm and always with an empty list to overide the ->importer() ?

Cheers Rolf

( addicted to the Perl Programming Language)

EDIT: clarified the importer part.

Replies are listed 'Best First'.
Re^2: random undefined sub error
by jerick1976 (Initiate) on Apr 10, 2013 at 14:42 UTC
    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.

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

      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.