Damian Conway wrote:
>I certainly wouldn't mind seeing it return to that role, now that
>it's not needed elsewhere. And, of course, that would actually be:
>
>       $x ~ $y         string concatentation
>       $x ~= $y        string append
>       ~$x             stringification
> ...
>       $str =~ s/a/b/;     substitute a for b in $str
>
> ...
>       $x-=10;
> ...
>       $x=-10;
> which doesn't seem to be a problem for people in Perl 5.
>

So now
      $x = ~$y 
is not the same as
      $x =~ $y

but
      $x =- $y 
is same as
      $x = -$y


Dont we have for consistency ( or may be I have a wrong idea of consistency ) 
to prohibit ( or rize warning ) when "=-" ( or "=+", "=/" and so on ) appear . 
besides it will make "=" an operatorial prefix ( which beutifully makes sence 
in "=~" operator) . And maybe in future we can find uses for "=|" , "=!" , ... 
.. 
And to start with, we can  make them legitimate operators to be overloaded .

Maybe , my question really is , how perl will behave if I will do

sub operator:=+ (str $x, str $y) { system( "$x | $y" ) } ;

so this is more question of qrammar ?

?


arcadi .




Reply via email to