in reply to splicing two arrays together
"I am not clear on why there are two 'the the'?"
That is because you are doing:
splice(@newArray3,3,0, @second[1,1]);
So you are inserting 2 elements "the" in @newArray3 at third position
See print "@second[1,1]" output .. and slices to understand itRegards,
In Section
Seekers of Perl Wisdom