From: Abigail Subject: Re: I find the perl syntax easier than python Message-ID: Date: 03 May 2007 19:21:12 GMT Michele Dondi (bik.mido@tiscalinet.it) wrote on MMMMCMXCII September MCMXCIII in : \\ \\ Since I mentioned Perl 6 above, in it eventually we will have more \\ convenient ways and less ambiguity in passing parameters. We will \\ still be able to use @_ & C. but who does really need them when you \\ can do \\ \\ sub addprint ($n,$m) { say $n+$m } # ? And this is an advantage? Limiting yourself to two arguments? 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"} Abigail -- $_ = "\nrekcaH lreP rehtona tsuJ"; my $chop; $chop = sub {print chop; $chop}; $chop -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> () -> ()