Larry Wall wrote:
Maybe we should just say that you can put it anywhere that makes sense,
and let the perl parser sort out the sheep from the goats.  The basic
rule is that for any op, [op] is also expected in the same place.  So
if the user defines a postfix:! for factorial, they automatically get
_[!] for that as well.

I think we could also allow

    @a [??] @b [::] @c

But it's not clear whether we can parse

    @a = [undef][...]
How would you parse:

@a = @b[[5]];

(My intent:  for @a; @b -> $x is rw; $y { $x = $y[5] }; # I think... )


Larry






Reply via email to