On Fri, 16 Mar 2012 13:55:06 +0100, Kiuhnm wrote:

>> I don't understand the reason for $arg1 and $arg2. Is there some reason
>> why the code couldn't do this instead?
>>
>>         my(@list1, @list2) = @_;
> 
> @_ contains references to arrays. You can't pass two arrays to a
> function.


Why ever not? That seems like basic functionality to me. I can't imagine 
any modern language that lacks such a simple feature. Even Pascal allows 
you to pass arrays as arguments to functions.

Is there some design principle that I'm missing that explains why Perl 
lacks this feature?


-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to