From: Michael P. <mp...@pl...> - 2009-12-22 14:55:05
|
On 12/22/2009 09:50 AM, Bodo Schulze wrote: > Indeed, this snipped does change @_ if you pass in a list of indeces. > Do you think that copying @_ is so expensive? Or are there other > reasons Sam goes down this road? Good question. I guess it just depends on how many objects were in that list. Objects are just special references in Perl so it's not any different than just copying a list of integers. Unless we're talking about several thousand it shouldn't make a difference. I'm guessing it was just shorter to write :) -- Michael Peters Plus Three, LP |