in reply to Including my own modules
As well as the other comments monks have given, I thought i should mention that you should always use strict and use warnings. You might also want to use diagnostics which will give you more verbose warnings, and can often help identify the cause of your errors.
You should also make sure your script knows where your mods live, if it is not in with all the others. This is a good time to use a BEGIN{} block and lib:
use strict; use warnings; BEGIN{ use lib '/path/to/your/homemade/modules/'; } ## now try use Module::Try::Error;
There is no point in doing this if your modules are already somewhere that perl knows about (the places it looks for modules are held in the special variable @INC). HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Including my own modules
by paixaop (Novice) on Dec 17, 2009 at 13:13 UTC | |
by almut (Canon) on Dec 17, 2009 at 15:27 UTC | |
by Anonymous Monk on Dec 17, 2009 at 14:44 UTC | |
|
Re^2: Including my own modules
by Anonymous Monk on Dec 17, 2009 at 10:15 UTC |