One of Perl's biggest strengths is the reach and depth of the modules that come with Perl/available on CPAN.
I prefer to use modules as much as possible for several reasons:
- I don't have time to reinvent the wheel
- I don't know as much about the problem as the module author
- I am not as good a programmer as the module author
- I'd rather work in an engineering mindset than an artisan mindset
Even in small tasks I try to make use of modules as much as possible.
For example, you can use a regex to break a filename out of a *nix path. But if you use File::Basename, your code now can handle Win32, MacOS, VMS, and AmigaOS pathnames.
That's a good thing when need to run a Perl based utility on several OSes.
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.