From: matz@... (Yukihiro Matsumoto) Date: 2003-04-18T01:16:16+09:00 Subject: Re: Cryptic -w warning: ambiguous first argument; make sure ... Hi, In message "Cryptic -w warning: ambiguous first argument; make sure ..." on 03/04/18, Johan Holmberg writes: |I wrote something like | | str = "banana" | str.gsub! /a/, "*" | puts str | |When running this this with the -w option I get the following |warning: | | ex1.rb:4: warning: ambiguous first argument; make sure make sure whether what you wrote is either * regexp as the first argument * division "str.gsub! / a" wrap arguments with parentheses, if you don't want to see the warning. matz.