Luke Palmer wrote:

> >   my $x = @ARGS;
> >   my ($y) = @ARGS;
> 
> Maybe:?
> 
>       my ($y) ^= @ARGS;

Or (presumably equivalently):

  my $y ^= @ARGS;

But that's horrible.  Presumably with two or more variables the comma
would denote list context, so the caret is only needed for exactly one
variable.  That's an awkward special-case to have to introduce.

Though thinking about this more, it may not be too much of a problem.  A
main use of this in Perl 5 is with C<@_>.  Since Perl 6 will have named
sub params this will be much less common and may not be something to
worry about.

Smylers

Reply via email to