令牌“$$”在Ruby中意味着什么?
发布时间:2020-12-17 03:45:21 所属栏目:百科 来源:网络整理
导读:我在mini_magick库中的makeTempname()中的image_temp_file.rb中看到了这个变量. 解决方法 $开始引用全局变量.程序通常会定义类似$name的内容,系统会预定义许多信息和控件引用. 特别是$$,是进程ID. $name program-defined global variable $! latest error me
我在mini_magick库中的makeTempname()中的image_temp_file.rb中看到了这个变量.
解决方法
$开始引用全局变量.程序通常会定义类似$name的内容,系统会预定义许多信息和控件引用.
特别是$$,是进程ID. $name program-defined global variable $! latest error message $@ location of error $_ string last read by gets $. line number last read by interpreter $& string last matched by regexp $~ the last regexp match,as an array of subexpressions $n the nth subexpression in the last match (same as $~[n]) $= case-insensitivity flag $/ input record separator $ output record separator $0 the name of the ruby script file $* the command line arguments $$ interpreter's process ID $? exit status of last executed child process (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |