in reply to Re: array and string split
in thread array and string split

I should have mentioned, my approach works very well, just wanted to see if there is a better method.

Replies are listed 'Best First'.
Re^3: array and string split
by Anonymous Monk on Jan 27, 2015 at 01:04 UTC

    There might be, maybe with a regex, but we'd still have to see the string the regex would be operating on...

    On the other hand, if it works well (which usually also means it's well tested and the performance is acceptable), don't touch a running system :-)

      There are many reasons why a programmer should "touch a working system." (Of course he should keep a backup. He may need it.) In this case, the OP is trying to improve his perl skills.

      A "working system" may pass its functional tests, but fail any test for maintainability. These should be treated the same as any other failure. The sooner they are fixed, the lower we can expect the total life-cycle cost to be.

      Bill