From: Joseph McDonald Date: 2000-12-04T13:10:04+09:00 Subject: [ruby-talk:6789] using join() while I await the "Programming Ruby" book. Can someone tell me what I'm doing wrong here: i = j = 2 a = join(":",i,j); print a undefined method `join' for # (NameError) also, is it true that this: s/^\s+|\s+$// # trim whitespace doesn't work? when I changed it to: line = $_ line.sub!(/^\s+|\s+$/ , "") # trim whitespace it appeared to work. Just wondering if s/// works in ruby and I'm doing it wrong. I also tried $_ =~ s/^\s+|\s+$// thanks, -joe