in reply to Re^4: Testing Perl Package
in thread Testing Perl Package
I highly doubt that your package SptTgtCfg is valid Perl and compiles as is. Thus I really doubt that you ever see
ok 1 use SptTgtCfg;
Your code cannot progress that far, because the line
use SptTgtCfg;
already fails.
Consider reading the error message and looking at the line number that it indicates. Then consider what variables are on that line and where they are declared.
Update: My diagnosis is somewhat wrong. My mistake here was to assume that SptTgtCfg.pm contains the errors as shown in the root node. But obviously, the ok 1 message can appear with a correct module SptTgtCfg.pm and then later the program hits the (strict induced) error of $SptTgtCfg not being declared.
|
|---|