diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sample/occur2.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Dec 27 09:13:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * sample/occur2.rb: have been broken. fixed for Ruby 1.9 feature. + Thu Dec 24 16:32:30 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> * lib/uri/generic.rb (eql?): Check the class of the compared object. diff --git a/sample/occur2.rb b/sample/occur2.rb index 53885c0ba7..22cf52003a 100644 --- a/sample/occur2.rb +++ b/sample/occur2.rb @@ -2,7 +2,7 @@ # usege: ruby occur2.rb file.. freq = {} while gets() - for word in split(/\W+/) + for word in $_.split(/\W+/) begin freq[word] += 1 rescue NameError |