To expand a bit on that last point raised by
toolic above: I have reason to suspect that your "Desired output" might contain some typos (missing numbers, bad spacing, etc). But it would be unwise for me to guess at what the correct form should be, because I have no way of knowing that. I'm just reacting to some apparent discrepancies in your "data" that aren't explained in your "description".
Also, when you say "... the numbers ... could have letters in them ... the numbers/entryes ... could have letters and hyphens in them ...", it really is impossible for us to make any sense of this, unless you actually show some relevant examples of actual input and (correct) desired output.
Apart from that, you will need to show some perl code that you have tried.
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.