44件ヒット
[1-44件を表示]
(0.019秒)
キーワード
-
$ INPUT _ LINE _ NUMBER (11) -
$ NR (11) -
$ PID (11) -
$ PROCESS _ ID (11)
検索結果
先頭4件
-
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (105.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ NR -> Integer (105.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ PID -> Integer (105.0) -
$$ の別名
...$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など... -
Kernel
$ $ PROCESS _ ID -> Integer (105.0) -
$$ の別名
...$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など...