Perl Monk, Perl Meditation | |
PerlMonks |
Re: Array spliceby DrHyde (Prior) |
on Aug 30, 2013 at 12:05 UTC ( [id://1051615]=note: print w/replies, xml ) | Need Help?? |
The reason it doesn't segfault is the same as the reason you never have to malloc() or free() anywhere in perl code: perl handles all the memory allocation for you behind the scenes. Perl arrays (and strings, and hashes) will all grow to fit whatever you stuff into them.
In Section
Seekers of Perl Wisdom
|
|