You seem to misunderstand my intent. I am trying to help you in several ways. However there are issues at several levels here and you may not be connecting the help I'm trying to give with the appropriate issue.

Re: Hashes, Arrays, Comparing Values to Elements was an attempt to address your understanding of hashes and also to suggest a way of presenting questions at PerlMonks that will help both you and us understand and reproduce the important aspects of your problem. The code I offered was not a direct attempt to solve your css generation problem.

Re^3: Hashes, Arrays, Comparing Values to Elements tried to explain what an XY question is and to suggest that you have a higher level issue (the perceived speed problem) that really ought be addressed at a much higher level than the hash oriented question. I suspect that "making the script faster" may not be the real issue at all, but you need to tell us what the bigger picture is for that to be clear.


Perl's payment curve coincides with its learning curve.

In reply to Re^5: Hashes, Arrays, Comparing Values to Elements by GrandFather
in thread Hashes, Arrays, Comparing Values to Elements by Trihedralguy

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.