Since I have nothing better to do anyway, I started reading Perl 6 Essentials. I got to page 33. At the bottom it states (and I quote, if I may):
String Operators
The ~ operator concatenates strings. The corresponding ~= operator concatenates the right-hand side of the assignment to the end of the string:
$line = "The quick brown " ~ $fox ~ jumps_over() ~ " the lazy " ~ $dog;
$line ~= "Belgium"; # adds to the string
End quote..
Last I heard, the concatenating operator was actually the _ in perl 6. Damian explained it as "the dot... in hyperspace"... This, ofcourse, was over a year ago (barely), in Munich. I'm also quite curious on where the "Belgium" came from.
Note to myself: Remember sunday evening...
-Dom
The syntax in P6E has changed very little since publication, so it's all up to date (though there's a proposal for a change to an operator). My theory is that the underbar for concatenation was too ugly, though I don't remember when it changed. Now the Parrot stuff, that's a bit different....
As all Douglas Adams readers realize, Allison's a bit of a fan, hence Belgium and 42 and whales and petunias.
Re:(Con)Catenation Operator
Beatnik on 2003-09-22T20:57:11
When it comes to Douglas Adams, I still haven't found the time or motivation to start reading it. I barely got used to adding Monty Python lines in my code... I think it's because.. uhm well, I come from Belgium and we're all pretty crazy that way:) Re:(Con)Catenation Operator
Elian on 2003-09-22T21:08:19
My goal is to invalidate almost all of the parrot and imcc chapters, for the better, by next edition.:-P
Re:(Con)Catenation Operator
Beatnik on 2003-09-22T21:41:52
I'll buy the next release then for sure... but only if you sign the current one next time you drop by a YAPC::Eu.Re:(Con)Catenation Operator
Elian on 2003-09-22T22:51:25
Absolutely. I reserve the right to not hand-correct all the errors, though, just in case.:)