I have a module that is nothing but a miscellaneous collection of little subroutines that have nothing in common other than that I find them handy. (E.g. my collection includes a sub for stripping leading and trailing whitespace from a string, one for producing a standard timestamp string, a wrapper for CORE::open that returns the open handle and takes care of the error checking, a function that removes duplicates from a list, preserving order, etc., etc.)
I suppose many Perl programmers have some scheme for reusing such useful but isolated snippets. It is not a terribly thorny problem, but I am curious about the details. What's your scheme like? If it is a module (and what else could it be?), what do you call it? Unfortunately, the better the name, e.g. Utilities.pm, the greater the likelihood of a namespace collision. Do you include this module in your software distributions, or do you use it only during development? Have you considered submitting it to CPAN?
Moved from Seekers of Perl Wisdom to Meditations by planetscape
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||