From: Daniel Bretoi Date: 2003-02-07T02:59:38+09:00 Subject: warning: split (...) interpreted as method call Hello, when I run this simple program: #!/usr/bin/ruby -w fh = File.open("zero"); fh.each { |d| arr = d.split (/\//); } on a file with '/' delimited lines, I get this error message: warning: split (...) interpreted as method call However, if I run it on the commandline, such as this: ruby -e 'fh = File.open("zero"); fh.each { |d| arr = d.splt (/\//); }' I don't get any errors. Can someone explain why I see this error? db -- Feb 6 King George VI of UK dies; his daughter becomes Elizabeth II, 1952 Feb 6 New Zealand Day