On Jul 18, 2006, at 1:26 AM, dblack / wobblini.net wrote: > Hi -- > > On Tue, 18 Jul 2006, Douglas McNaught wrote: > >>> Searching for an answer to this question, I've found scripts >>> using gsub! >>> What is this exclamation mark? >> >> It means it changes the object it operates on, rather than >> returning a >> changed copy. > > In this case that's true, but in general, ! means a "dangerous" method > with a non-dangerous counterpart. (See Logan's answer.) What are some examples of method names with ! used to indicate some dangerous thing other than a destructive method? -- Elliot Temple http://www.curi.us/blog/