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.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to