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...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.