On Mon, Oct 08, 2001 at 11:38:16PM +0100, Charlie Stross wrote:
> 
> However, note the implicit use of @_ in shift. Yes, this behaviour is
> documented in the Camel book. But the use of implicit arguments is still
> confusing to beginners at some stages (presumably not by the time they're
> getting heavily into sorting algorithms). I'd be a bit happier if it was
> written as:
>    
>    sub fisher_yates_shuffle {
>        # Takes a single parameter, a reference to an array
>        my $array = shift @_;


I strongly object to that. Default parameters are there for a reason. 

    my $argument = shift;

is a Perl idiom. Please do not try to dillute that.



Abigail

Reply via email to