G'day teun-arno,

You started your post with:

"No question here! Just want to show some code."

You posted it in "Seekers of Perl Wisdom", which is inappropriate when you don't have a question. The first sentence on that page is:

"If you have a question on how to do something in Perl, or you need a Perl solution to an actual real-life problem, or you're unsure why something you've tried just isn't working... then this section is the place to ask."

I've moved it to Cool Uses for Perl". The first sentence on that page is:

"This section is the place to post your general code offerings -- everything from one-liners to full-blown frameworks and apps."

You don't need to do anything else in respect of that change beyond understanding why it was made and being more careful in future.

There's another problem: you haven't posted your code between '<code>...</code>' tags. You have multiple instances of code that (presumably) should have looked like '$array[$index]', but renders as '$array$index'. Please fix this.

[See also: "Writeup Formatting Tips" and "What shortcuts can I use for linking to other information?"]

— Ken


In reply to Re: Slice and dice a ref to hash by kcott
in thread Slice and dice a ref to hash by teun-arno

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.