in reply to Re^2: Splice an array into another array
in thread Splice an array into another array

Let me try again

@DNA3 = <DNA3handle>; creates an array where the contents of each line of DNAHANDLE (along with any line endings) becomes its own element of the array

It is not an array where each element is a single character of the file

@DNA3 = <DNA3handle>; chomp @DNA3; @DNA3=split('',join('',@DNA3));
Would be that kind of array (without line endings (chomp))

Replies are listed 'Best First'.
Re^4: Splice an array into another array
by Smeb (Novice) on Jun 23, 2017 at 23:24 UTC

    THANK YOU!!! If I could give you a kiss over the monitor I would, thank you so much for your explanations(+ others as well), you have no idea how much you helped me. Once again thanks for the solutions, you are the best!