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


in reply to Parameters, subs and the shift function

How does the sub manage to figure out what's the size of @a and @b so that when you use the shift tool you don't end up with @array1 being ("mary","had","a","little","lamb","!","London","Bridge","is"); and @array2 nothing...
No way. See "Pass by reference" in perlsub.