Brent Dax wrote:

Can the new nefarious use be concat?  Pretty please?
There was a brief period 18 months ago when tilde *was* the designated
Perl 6 concatenation operator.

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

I guess the only concern is the potential for nasty surprises between:

	$str =~ s/a/b/;     substitute a for b in $str

and:

	$str ~= s/a/b/;     substitute a for b in $_ and append result to $str

But I guess that's no worse than:

	$x-=10;

and

	$x=-10;

which doesn't seem to be a problem for people in Perl 5.

Damian


Reply via email to