in reply to Concatenating arrays fetched from different text files

Speaking in general terms, you probably want to be passing references to your arrays to a generic sub-routine, not actual arrays, for starters. Update: just took a second look and saw that you are doing that already.

Beyond that, you probably want to read up on splice, shift and unshift (and of course push and pop depending on just how you want to manipulate the arrays. A good reading of the docs for splice will show that you can implement the other four functions using splice alone, but that wouldn't be as clear.

You might also think of your data stacks as being piles of cards, there could be some useful insights or ideas there.

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Replies are listed 'Best First'.
Re^2: Concatenating arrays fetched from different text files
by thanos1983 (Parson) on May 29, 2014 at 09:23 UTC

    To: boftx,

    So many functions that I am not even aware of, that is the beauty of Perl. I will take a look and try to experiment with all of them. I need to become more familiar you never know where they might needed.

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

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