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

It does exist. It is linked in from an NFS mount point (NAS volume). sub select_storage does indeed exist within the gitadm_shell_commands.pm file. I have tried inserting a require statement to check to see if the module was loaded and did not receive an error. The addition had no affect on the error. Since the require statement seemed unnecessary so I removed it prior to posting.

Replies are listed 'Best First'.
Re^3: random undefined sub error
by aitap (Curate) on Apr 10, 2013 at 17:11 UTC

    Could you possibly forget to define a package gitadm_shell_commands in your gitadm_shell_commands.pm file?

    Try checking symbol table for your sub in case it's left defined somewhere else:

    { no strict 'subs'; sub print_subs { for (keys %{$_[0]}) { next if $_ eq $_[0]; print "$_[0]$_\n" if defined *{$_}{CODE}; print_subs($_[0].$_) if /::$/; # dirty hack } } print_subs("main::"); }