summaryrefslogtreecommitdiff
path: root/sample/samp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/samp.rb')
-rw-r--r--sample/samp.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/sample/samp.rb b/sample/samp.rb
deleted file mode 100644
index 4052a308c1..0000000000
--- a/sample/samp.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# 全角文字を含むスクリプト
-# 使い方: samp.rb file..
-
-単語 = 0
-while gets()
- printf("%3d: %s", $., $_)
- while sub(/\w+/, '')
- if $& != "";
- 単語 += 1
- end
- end
- if ($. >= 10); break; end
-end
-printf("line: %d\n", $.)
-printf("word: %d\n", 単語)