Do you know where your variables are? | |
PerlMonks |
Re: Concatenate or Join?by LanX (Saint) |
on Nov 12, 2012 at 20:33 UTC ( [id://1003503]=note: print w/replies, xml ) | Need Help?? |
Simple, concat doesn't create a new copy, it's just enlarging the old one as long as the allocated buffer allows to. I think you are confusing Perl with languages like JS, Java or Python where (the memory representation) of strings is immutable, i.e. can only be created, read or deleted but never updated.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|