Hello guys, thank all so, so much for your replies. I learned so much from these it's amazing haha.

I also apologize for not replying earlier, I had some major issues with the internet and were only able to get back on-line and take a look at your help today.

@Haukex; thank you very much. The reason I have been using the formatting as I did, is mainly because I constantly forget to open or close brackets and in the way I did it I have a bit better overview over the brackets I open and close. My guess is, that the more I work with perl and the more I will get used to it I can probably go back to a different formatting style.

Another question I would have would be about this: $h->{"3p-tRFs"} . How was it possible to replace the variable call from my version with " -> " ? My second question would be about the Data:Dumper. Isn't it contra-productive to use it when you are working with large data-sets and would end up printing a lot of content into the terminal? Or would you just use the Data:Dumper until you made sure that your script is working? I can definitely see the advantages of the Data:Dumper but I am just a bit worried it could slow things down too much with large data-sets.

poj, hippo, jwkrahn thank you all so much for your help and baring with my probably very basic and banal problems. But I definitely learned a lot from your help and I slowly start being less scared about working with perl.


In reply to Re: Skript help needed - RegEx & Hashes by PandaRaey
in thread Skript help needed - RegEx & Hashes by PandaRaey

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.