"David Douthitt" <DDouthitt / cuna.com> writes:

> >From your description things finally CLICK for me :-)
> 
> This is the Ruby version:
> 
> chomp;             # remove linefeed from end of $_
> chomp("ow");       # remove "ow" from end of $_
> 
> Perhaps I have been tainted by Perl, this is what I
> was expecting:
> 
> chomp;             # remove linefeed from end of $_
> chomp("ow");       # remove linefeed from end of "ow"
> 
> See?  'Tis my own confusion.  Is this what Perl did
> to me?  :-)

You once, were lost,
..but now, you're found...


In general, remember that in the objecty world of Ruby, it's

   object.method

rather than

   method(object)


Of course Kernel is littered with exceptions, but Kernel is an
anomaly anyway ;-)


Dave