Your program spec has some flaws related to ranges:
5A-5D would normally mean 5A, 5B, 5C, 5D
IN: 432 10TH ST APT (Range 3A - 3B)
OUT: 432 10TH ST, APT 3A, BROOKLYN NY 10598-6601
OUT: 432 10TH ST, APT 3B, BROOKLYN NY 10598-6601
IN: 432 10TH ST APT (Range 4A - 4B)
OUT: 432 10TH ST, APT 4A, BROOKLYN NY 10598-6605
OUT: 432 10TH ST, APT 4B, BROOKLYN NY 10598-6605
IN: 432 10TH ST APT (Range 5A - 5D) ***???***
OUT: 432 10TH ST, APT 5A, BROOKLYN NY 10598-6605
OUT: 432 10TH ST, APT 5B, BROOKLYN NY 10598-6605 ???
OUT: 432 10TH ST, APT 5C, BROOKLYN NY 10598-6605 ???
OUT: 432 10TH ST, APT 5D BROOKLYN NY 10598-6605
IN: 432 10TH ST APT 6A
OUT: 432 10TH ST APT 6A, BROOKLYN NY 10598-6605
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.