From: ts Date: 2002-05-27T23:47:29+09:00 Subject: Re: if modifier problem >>>>> "K" == Kurt Hindenburg writes: K> print "1 Help\n" if #{opt} =~ "help" K> if #{opt} =~ "help" Apparently, you like the notation #{...} :-)), but it work *only* in a string otherwise it's the beginning of a comment print "1 Help\n" if opt =~ "help" if opt =~ "help" What you have written is equivalent to something like this opts.each do |opt, arg| if (if print "2 Help\n" end) print "1 Help\n" end puts "Option: #{opt}, arg #{arg}" end Guy Decoux