From: "Dat Nguyen" <thucdat / hotmail.com> Subject: [ruby-talk:03645] Perl and Ruby: an Irony Date: Sat, 24 Jun 2000 02:47:47 EDT > I am not sure which one, Perl or Ruby, is more readable here. This is a > curious observation: to get rid of the $ on one line, one has to pay #{} on > the following line. Is this the principle "pay it now, or pay it later ... > with interest!" ? just my two cents you don't have to use '#{}' for each variables. -- yashi
$<.each do |l| if /1999/ =~ l print "#{l.split.join(':')}\n" end end