in reply to Re: How to split a non even number of string elements into a hash
in thread How to split a non even number of string elements into a hash [RESOLVED]

Hello Eily

This is not a bad idea, but in cases that you will not need to parse a string beyond two elements at a time.

I will keep that in mind for possible further implementations in future.

Thank you for your time and effort reading and replying to my question.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^3: How to split a non even number of string elements into a hash
by Eily (Monsignor) on Feb 09, 2017 at 19:27 UTC

    If the answer Athanasius gave you is easier to understand for you, it's the one you should use. Writing code that you can understand and modify by yourself should be your priority. But if you have trouble understanding what I did in my answer and are curious, feel free to ask for further details.

      Helllo again Eily,

      That is absolutely true on what you are saying but if we do not force our selfs to learn new things then we will end up in the same things and not expand our knowledge.

      This is why I love to post questions here and people can suggest new ideas for me to read on. :D

      Seeking for Perl wisdom...on the process of learning...not there...yet!
Re^3: How to split a non even number of string elements into a hash
by AnomalousMonk (Archbishop) on Feb 09, 2017 at 18:07 UTC
    This is not a bad idea, but in cases that you will not need to parse a string beyond two elements at a time.

    I don't understand this. Can you please explain "cases that you will not need to parse a string beyond two elements at a time"?


    Give a man a fish:  <%-{-{-{-<

      Hello AnomalousMonk,

      I miss understood when I quickly read the answer to my question. Thanks for clarifying.

      Seeking for Perl wisdom...on the process of learning...not there...yet!