$!

latesterror message

$@

locationof error

$_

stringlast read by gets

$.

linenumber last read by interpreter

$&

stringlast matched by regexp

$~

thelast regexp match, as an array of subexpressions

$n

thenth subexpression in the last match (same as $~[n])

$=

case-insensitivityflag

$/

inputrecord separator

$\

outputrecord separator

$0

thename of the ruby script file

$thecommand line arguments

$$

interpreter’sprocess ID

$?

exit status of last executed child process

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2021-09-18
  • 2021-08-14
  • 2022-12-23
  • 2022-03-07
  • 2022-01-25
  • 2021-05-16
猜你喜欢
  • 2021-05-25
  • 2021-06-17
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案