From: OZAWA -Crouton- Sakuro Date: 2001-04-08T23:10:21+09:00 Subject: [ruby-talk:13557] RE: array question At Sun, 8 Apr 2001 22:35:31 +0900, Michael Neumann wrote: > > puts arr.compact.size > > arr.compact! > > puts arr.size > But then arr[1000] results in nil !!! compact and compact! are different. I use them in different way in my code above. If both of them(method with and without bang) exist for same object, the bang one is more destrucive(alters the reciever). Use with care. -- OZAWA -Crouton- Sakuro E-Mail: mailto:crouton@weatherlight.org Web: http://www.weatherlight.org/~crouton/ PGP: C98F 74E0 AEEB 4578 1DFC F650 3BE0 9627 11FC C9F5 VERBA VOLANT, SCRIPTA MANENT