On Mon, Apr 23, 2001 at 02:31:55PM +0200, H.Merijn Brand wrote:
> On Mon, 23 Apr 2001 13:19:24 +0100, Graham Barr <[EMAIL PROTECTED]> wrote:
> > > $a = $b ~ $c; # Mmm!
> > > 
> > > I like that last one a lot, because it doesn't disturb anything.
> > > You'd have to alter ~'s precedence so that binary ~ is higher
> > > than named unary operators. (It's print($a~$b), not print $a (~b).)
> > 
> > I am not sure I do like the use of ~ here. It does not screan concatenate
> > to me (but then again neither did . when I started perl)
> > 
> > I am thinking that maybe it should be a 2 character operator with at
> > least one of then being + as + is common in many other languages
> > for doing concatenation.
> 
> like ++ ?

I don't think that would be a good choice. Try translating these statements

  $c = $a.++$b;
  $d = $a++.$b;

Graham.

Reply via email to