http://www.perlmonks.org?node_id=1051615


in reply to Array splice

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.