in reply to Including my own modules

Welcome to the fold Pedro!

Take a look over the perlmod section on Perldoc... It provides an excellent starting point for writing modules.

With regards to
package Module::Main use Module::Try::Error;
giving you an error, looks like you're missing a ; when you declared Module::Main... also, the clearer your questions are, the easier and quicker the answers to you will be.

best of luck with it.


ps. also, I'd suggest using a different names for your module rather than "Module" and "Module::Main". They don't really convey much of an idea of what they are intended to do... And the name space of your module is kind of ground level zero. Everything else is built on top of it... Of course you can change it later, but why make life harder for yourself... change it now while there aren't (m)any dependancies on it...