|XP is just a number|
Concatenating Array elementsby lmtaylor (Novice)
|on Aug 19, 2014 at 20:23 UTC||Need Help??|
lmtaylor has asked for the wisdom of the Perl Monks concerning the following question:
If I am to concatenate two elements of an array, will the index numbers assigned to the array elements update? In other words, if I were to run this code:
@array = (1..10);
$array = $array . $array;
My array now has the following elements:
Is the index of 9 still $array? Or has it been bumped up to $array since the number that was in $array has been concatenated with $array?
I've tried searching for this online, but couldn't find anything...maybe I'm using incorrect terminology?
Thanks a lot!