Question : module.pm not returning true value

trying to load a self-writen module, i get an error message: module.pm did not return a true value at ...  The reason for this is - i assume - a certain variable called $myDEBUG [which can bet set to 0 or 1 whether i want to print debug-information on the screen.  When I set this value to 0 [to avoid annoying debuginfo], I get the described error message, while when I set it to one, the script works perfectly [with annoying errormessages].  So the variable is only useful for displaying or hiding debuginformation, nothing more.   [I also have a variable with the same name in the .pl-script itself, but the chaning of the names didn't had any inffulence, neither changing the value of this parameter.].  It seems that i am missing something really trivial...
the module:

package fScreening;

use lib "/users/sista/pmonsieu/perl/lib";
use strict;
my $myDEBUG = 0;

Answer : module.pm not returning true value

Usually the reason is that at the end of the module you have to put "1;"
Just add one line to the very end of the module:
1;
and this should solve the problem (unless you have any other errors)

Here is athe full listing you should have:
###########################
package fScreening;

use lib "/users/sista/pmonsieu/perl/lib";
use strict;
my $myDEBUG = 0;
1;
###########################
Random Solutions  
 
programming4us programming4us