I keep writing code like this:

$str.substr(/regex/, 'replaement)

when I should write

$str.=substr(/regex/, 'replaement)


The former will *return* the replaced string to the void but not change it.

I don't know if the above can be ever useful, but maybe this kind of
constructs should warn. Or maybe there should be a flag that will turn
on warnings  for such cases.

Or maybe there already is, I just don't know about it?

Gabor

Reply via email to