On 10/25/05, Juerd <[EMAIL PROTECTED]> wrote: > I think it'd be great if +=, ~=, +&=, ++, etc, could all assume $_ on > their LHS when there is no obvious operand. > > This clashes with &prefix:<=>, but that's nothing a space cannot fix. > Same for lvalue subs called x or xx (or X or XX). > > my $subject = "foo foo foo"; > given ($subject) { > s/foo/bar/; # "bar foo foo" > ++; # "bar foo fop" > x= 2; # "bar foo fopbar foo fop" > ~= "!"; # "bar foo fopbar foo fop!" > } > > Especially bare ++ would be useful, I think.
Did you post this specifically to anti-address the fear that P6 will be more line-noise-ish than P5? :-p Rob