_Why_, in sed and perl, does the s/foo/bar/ syntax default to substituting just one occurrence, and not all of them?
I can't immediately remember any situation where that was specifically what I wanted. And I can remember lots of situations where I was caught out by forgetting to add the 'g' flag on the end. (One of them three minutes ago, oddly enough.)
Why isn't 'g' the default, and 'only substitute once' a special option you have to select?