Well, I have a number of different record types and modifier flags (
http://www.dlugosz.com/ZIP2/structure.html) and I want to model them as Perl objects. They will encode/decode, as well as provide functionality specific to that record type. Notice on that page I have real binary hex-dump examples, as I wrote a simple thing initially. But last I left it, I was working on a more elaborate system of populating both values and behavior based on the initial "type" when new-ing it. On a particular species, for example, a "set" method could check for contraints based on the rules of that specific situation.
The implementation concept was to have "slots" that could be values or code. That's starting to sound like what these modules do. So why re-invent it?
—John
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.