From c37140b3519fd8028d3b720bbb76c14af2c4e093 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 19 Dec 2002 20:45:24 +0000 Subject: Be consistent on the use of the implicit $_. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/occur.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/occur.rb b/sample/occur.rb index f489beee17..8bb09e15ad 100644 --- a/sample/occur.rb +++ b/sample/occur.rb @@ -2,7 +2,7 @@ # usege: ruby occur.rb file.. freq = Hash.new(0) while gets() - for word in $_.split(/\W+/) + for word in split(/\W+/) freq[word] += 1 end end -- cgit v1.2.3