Help for this page
* scalars as themselves * each array as an array reference (a reference is a scalar) * each hash as a hash reference (a reference is a scalar)
1. there is no reason to pass a reference to $template(a scalar) to the subroutine - why not just ... which takes more memory since you are creating another array(@new_array).