http://www.perlmonks.org?node_id=946552


in reply to Re^2: splicing two arrays together
in thread splicing two arrays together

Thanks Grandfather for those solutions, the best solution I guest is the one that requires the least amount of typing in any language?

Replies are listed 'Best First'.
Re^4: splicing two arrays together
by GrandFather (Saint) on Jan 06, 2012 at 10:35 UTC

    I'd say the best solution is the one that works correctly, is maintainable and fast enough. Number of lines or characters of code is generally one of the least important criteria. The most important criteria depends a great deal on the purpose of the code.

    True laziness is hard work
Re^4: splicing two arrays together
by choroba (Cardinal) on Jan 06, 2012 at 09:32 UTC
    Well, it depends. The best solution might be the one that runs fastest, uses minimal memory, or the one that can be easily understood for later maintenance.