From: "David Formosa (aka ? the Platypus)" Subject: Re: I find the perl syntax easier than python Message-ID: Date: Thu, 03 May 2007 21:02:45 GMT On 03 May 2007 19:21:12 GMT, Abigail wrote: > In Perl5, you aren't tempted to use named variables, so you get > your arguments in an array. And given an array, it's natural to > allow a variable number of arguments: > > > sub addprint {my $sum = 0; $sum += $_ for @_; print $sum, "\n"} So you do something like this sub addprint (*@num) { say [+] @num };