in reply to Reversed .= operator
Oh, but I forgot to say, this is Perl 6, of course.> multi sub infix:<=.> (Str $w1 is rw, Str $w2) { $w1 = $w2 ~ $w1;} sub infix:<=.> (Str $w1 is rw, Str $w2) { #`(Sub+{Precedence}|14963240 +0) ... } > > my $c = "bar"; bar > $c =. "foo"; foobar > say $c; foobar
Sorry about it, I couldn't resist. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reversed .= operator
by raiph (Deacon) on May 03, 2016 at 06:26 UTC | |
by Laurent_R (Canon) on May 03, 2016 at 20:58 UTC | |
|
Re^2: Reversed .= operator
by 1nickt (Canon) on Apr 30, 2016 at 15:50 UTC | |
by Laurent_R (Canon) on Apr 30, 2016 at 16:16 UTC | |
by BrowserUk (Patriarch) on Apr 30, 2016 at 19:27 UTC | |
by Laurent_R (Canon) on Apr 30, 2016 at 21:24 UTC |