Please accept my sincerest apology if this is the wrong area to post my request. I purchased a classifieds software program which is written in Perl and would like to make some modifications. I am learning Perl, however slowly, and am having a hard time alphabetizing.I presently have this:
'21' => ['category','ascend', '9', '1', '1', '1', 'Category','on','on'
+, '', 'string', '=', 'on', 'select', '', '', 'CERAMICS|SILVER|FURNITU
+RE|SILVERPLATE|GLASS|TEXTILES|METALWARE|POST 1900|PEWTER|MISCELLANEOU
+S|REPRODUCTIONS', 'on', 'bold', 'general', '80'],
To get this:
Listing Categories
CERAMICS(3) SILVER (4)
FURNITURE(8) SILVERPLATE(6)
GLASS(12) TEXTILES (8)
METALWARE(1) POST 1900 (0)
PEWTER(0) POST 1900(0)
REPRODUCTIONS(3) MISCELLANEOUS(5)
Everything APPEARS the way I want it to on the page, however, it appears out of alphabetical order in another segment of the program. When I put the Categories in strict alphabetical order and 2 pipe symbols (as per software tech), I get one column and an additional (0) for example:
CERAMICS (3) (0)
FURNITURE (8) (0)
GLASS (12) (0)
I would like everything to be in strict alphabetical order, no (0) and 2 columns. Can anyone help me? Thank you in advance for your assistance.
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.