[boulder.pm] Where is my module?

Daniel Moore moore at xor.com
Sun Jun 11 11:37:14 CDT 2000


On Sun, 11 Jun 2000, Robert L. Harris wrote:

> 
> 
> I get this:
> Undefined subroutine &main::newFileArrival called at ./DefMungeSplit.pl line
>         361 (#1)
>     
>     (F) The subroutine indicated hasn't been defined, or if it was, it
>     has since been undefined.
>     
> Uncaught exception from user code:
>         Undefined subroutine &main::newFileArrival called at ./DefMungeSplit.pl line 361.
>         main::GetFileID('../DEF.EBCDIC-06-07-2000-10-00.gz') called at ./DefMungeSplit.pl line 106
> 
> 
> The subroutine, newFileArrival is defined in a module:
> 
> my ($LoadGen3Script)="$ENV{SCRIPT}"."/"."LOADgen3.pm";
> eval (require $LoadGen3Script);
> 
> I can vi the LOADgen3.pm file and see that the subroutine is there.  
> I don't get any other errors durring execution, yet.
> 
> 
> Help?

Are you checking $@ for errors after you require the module?

e.g.
 my ($LoadGen3Script)="$ENV{SCRIPT}"."/"."LOADgen3.pm";
 eval (require $LoadGen3Script);
 if ($@) {
    die "error in loading script: $@";
 }

Dan




More information about the Boulder-pm mailing list