Perl records this information, but does nothing (or
very little) with it.
Because it is recorded, the typesafety.pm and types.pm
modules are able to use it. This kind of core hooks
for extensibility via modules is a recurring pattern
in Perl: overload.pm can intercept the definitions of
constants and turn them into objects; attributes.pm
handles cases where tags like :foo appear after variables
or sub definitions (in cases where the tag isn't one of
the built ins like :lvalue, :method, or the depricated
:shared). This feature, like attributes, went through
growing pains. It is undocumented because it is still
experimental - the details of how and when it is used
are up in the air, even though some experimental modules
are using it now.
The short of it is, use types.pm and/or typesafety.pm.
has an intro to the idea of type safety and details about
the Perl implementations. It quotes this thread heavily =)
I hope this answers your question.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- 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.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||