$ARG
$_ - The default input and pattern-searching space.
$<digit> - Contains the subpattern from the corresponding set of parentheses in the last pattern matched.
$MATCH
$& - The string matched by the last successful pattern match.
$PREMATCH
$` - The string preceding whatever was matched by the last successful pattern match.
$POSTMATCH
$' - The string following whatever was matched by the last successful pattern match.
$LAST_PAREN_MATCH
$+ - The last bracket matched by the last search pattern.
$MULTILINE_MATCHING
$* - Set to 1 to do multi-line matching within a string, 0 to tell Perl that it can assume that strings contain a single line, for the purpose of optimizing pattern matches. Default is 0. Use of ``$*'' is deprecated in modern perls.
input_line_number HANDLE EXPR
$INPUT_LINE_NUMBER
$NR
$. - The current input line number for the last file handle from which you read (or performed a seek or tell on).
input_record_separator HANDLE EXPR
$INPUT_RECORD_SEPARATOR
$RS
$/ - The input record separator, newline by default.
autoflush HANDLE EXPR
$OUTPUT_AUTOFLUSH
$| - If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0.
output_field_separator HANDLE EXPR
$OUTPUT_FIELD_SEPARATOR
$OFS
$, - The output field separator for the print operator.
output_record_separator HANDLE EXPR
$OUTPUT_RECORD_SEPARATOR
$ORS
$/ - The output record separator for the print operator. Ordinarily the print operator simply prints out the comma-separated fields you specify, with no trailing newline or record separator assumed.
$LIST_SEPARATOR
$" - This is like ``$,'' except that it applies to array values interpolated into a double-quoted string (or similar interpreted string). Default is a space.
$SUBSCRIPT_SEPARATOR
$SUBSEP
$; - The subscript separator for multidimensional array emulation.
$OFMT
$# - The output format for printed numbers. Use of ``$#'' is deprecated.
format_page_number HANDLE EXPR
$FORMAT_PAGE_NUMBER
$% - The current page number of the currently selected output channel.
format_lines_per_page HANDLE EXPR
$FORMAT_LINES_PER_PAGE
$= - The current page length (printable lines) of the currently selected output channel. Default is 60.
format_lines_left HANDLE EXPR
$FORMAT_LINES_LEFT
$- - The number of lines left on the page of the currently selected output channel.
format_name HANDLE EXPR
$FORMAT_NAME
$~ - The name of the current report format for the currently selected output channel. Default is name of the filehandle.
format_top_name HANDLE EXPR
$FORMAT_TOP_NAME
$^ - The name of the current top-of-page format for the currently selected output channel. Default is name of the filehandle with _TOP appended.
format_line_break_characters HANDLE EXPR
$FORMAT_LINE_BREAK_CHARACTERS
$: - The current set of characters after which a string may be broken to fill continuation fields (starting with ^) in a format. Default is " /n-", to break on whitespace or hyphens.
format_formfeed HANDLE EXPR
$FORMAT_FORMFEED
$^L - What formats output to perform a form feed. Default is /f.
$ACCUMULATOR
$^A - The current value of the write() accumulator for format() lines.
$CHILD_ERROR
$? - The status returned by the last pipe close, backtick (``) command, or system() operator.
$OS_ERROR
$ERRNO
$! - If used in a numeric context, yields the current value of errno, with all the usual caveats. If used in a string context, yields the corresponding system error string.
$EXTENDED_OS_ERROR
$^E - More specific information about the last system error than that provided by $!, if available. (If not, it's just $! again, except under OS/2.)
$EVAL_ERROR
$@ - The Perl syntax error message from the last eval() command.
$PROCESS_ID
$PID
$$ - The process number of the Perl running this script.
$REAL_USER_ID
$UID
$< - The real uid of this process.
$EFFECTIVE_USER_ID
$EUID
$> - The effective uid of this process.
$REAL_GROUP_ID
$GID
$( - The real gid of this process.
$EFFECTIVE_GROUP_ID
$EGID
$) - The effective gid of this process. If you are on a machine that supports membership in multiple groups simultaneously, gives a space separated list of groups you are in.
$PROGRAM_NAME
- Contains the name of the file containing the Perl script being executed.
$[ - The index of the first element in an array, and of the first character in a substring. As of Perl 5, assignment to ``$['' is treated as a compiler directive, and cannot influence the behavior of any other file. Its use is discouraged.
$PERL_VERSION
$] - The version + patchlevel / 1000 of the Perl interpreter.
$DEBUGGING
$^D - The current value of the debugging flags.
$SYSTEM_FD_MAX
$^F - The maximum system file descriptor, ordinarily 2. System file descriptors are passed to exec()ed processes, while higher file descriptors are not.
$^H - The current set of syntax checks enabled by use strict.
$INPLACE_EDIT
$^I - The current value of the inplace-edit extension.
$OSNAME
$^O - The name of the operating system under which this copy of Perl was built, as determined during the configuration process.
$PERLDB
$^P - The internal variable for debugging support.
$BASETIME
$^T - The time at which the script began running.
$WARNING
$^W - The current value of the warning switch.
$EXECUTABLE_NAME
$^X - The name that the Perl binary itself was executed as, from C's argv[0].
$ARGV - contains the name of the current file when reading from <>.
@ARGV - The array @ARGV contains the command line arguments intended for the script.
@INC - The array @INC contains the list of places to look for Perl scripts to be evaluated by the do EXPR, require, or use constructs.
%INC - The hash %INC contains entries for each filename that has been included via do or require.
$ENV - The hash %ENV contains your current environment. Setting a value in ENV changes the environment for child processes.
$SIG - The hash %SIG is used to set signal handlers for various signals. Example:
$^M -emergency memory pool
相关推荐
光谱分布、光谱辐射通量密度与不同时间段分布光谱(图示)
1、光谱分布图 2 太阳辐射能量图 3、不同时间段的太阳分布光谱图 4、不同波长的光的能量分布主要区域 5、不同波段的使用场景
perl 常用处理函数
最近,由于项目需要,需要利用Perl把MYSQL数据库中的某些表的数据输出到Excel文件中方便打印,备份保存和数据移动。(由于之前未用过Perl,所以学了一下)。 需求描述:使用Perl从数据库中取出数据,把数据输出到Excel中。 问题解决方案: 1、利用Spreadsheet::WriteExcel实现对Excel文件的写入工作。 2、解决向Excel
【OpenAirInterface知识-3】OAI端到端部署之5G基站部署
在上一篇文章中已经完成了5G核心网的部署,本篇文章将介绍OAI 5G基站的部署过程。
无涯教程-Perl - setsockopt函数
此函数将SocketoptionsOPTNAME的值设置为SOCKET上指定级别的OPTVAL值。您需要导入Socket模块,以获取Tabl中显示的OPTNAME的有效值。无涯教程网提供描述此函数将SocketoptionsOPTNAME的值设置为SOCKET上指定级别的OPTVAL值。Perl 中的 setsockopt函数 - 无涯教程网。如果失败,此函数返回undef;如果成功,则返回1。以下是此函数的简单语法-OPTNAME 描述。
PDF批量加水印 与 去除水印实践
我们可以给PDF加图片水印或文字水印,要去除图片水印,一般只需要删除最后一个图片对象即可。要去除文字水印,需要保证主体内容和文字水印在/Contents中位于不同的对象内,这样我们只需要删除文字水印对应的对象即可删除水印。而对于主体内容和文字水印已经混合在一个对象时,本文的提供的方法则无能为力,需要进一步深入分析PDF细节。
NX二次开发(python)-坯料尺寸(一)
一般在产品制造过程中,往往要判断一个模型在出模方向上的最小包容盒尺寸,在NX中可以用坯料尺寸命令实现,当然也有相应的代码实现,这或许可以帮助我们实现一些产品的坯料尺寸批量输出,节省人力。
无涯教程-Perl - setnetent函数
该函数应在第一次调用getnetent之前调用。STAYOPEN参数是可选的,在大多数系统上未使用。当getnetent()从网络数据库的下一行检索信息时,setnetent会将枚举设置(或重置)为主机条目集的开头。无涯教程网提供描述该函数应在第一次调用getnetent之前调用。STAYOPEN参数是可选的,在大多数系统上...Perl 中的 setnetent函数 - 无涯教程网。以下是显示其基本用法的示例代码-执行上述代码后,将产生以下输出-以下是此函数的简单语法-此函数不返回任何值。
BVH2SMPL 实战笔记
BVH2SMPL 实战笔记
Vim命令合集
命令历史以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。启动vim在命令行窗口中输入以下命令即可vim 直接启动vimvim filename 打开vim并创建名为filename的文件文件命令打开单个文件vim file同时打开多个文件vim file1 file2 file3 ...在vim窗口中打开一个新文件:open file在新窗...
知识图谱大模型系列之 12 LLM 知识图谱构建器:从零到 GraphRAG 使用 LLM 知识图谱生成器在 GenAI 应用中提取和使用知识图谱(教程含源码)
为了更深入地了解 LLM 知识图谱构建器,GitHub 存储库提供了大量信息,包括源代码和文档。此外,我们的文档提供了详细的入门指南,而GenAI 生态系统则提供了有关可用更广泛工具和应用程序的进一步见解。
PD3.0详解 协议的时序timer和counter计数
前面介绍了关于PD协议的交互,还有协议层数据各个字段的含义,但是一直没有系统的说关于协议的时序,还有部分counter,就是协议允许发送的次数,或者一些其他计数。 大师匈今天说一下关于这方面的东西,这些东西都是非常关键的东西,但是相对来说PD标准内对时序的要求还是比较宽泛,非常容易能够实现这样的要求。 Timer 1、CRCReceiveTimer 0.9~1.1ms 表示每次通信收到goodcrc的时间,必须在这个时间内收到goodcrc, 我们要注意不是在0.9~1.1ms内,而是第三方可以在这个范
perl 内置预定义变量
在终端下使用vim进行编辑时,默认情况下,编辑的界面上是没有显示行号、语法高亮度显示、智能缩进 等功能的。为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc。 在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本, 所以,一般情况下把.vimrc文件创建在当前用户的根目录下比较方便,即创建的命令为: $vi ~/.vimrc 设置完后 $:x 或者 $wq 进行保存退出即可。 下面给出一个例子,其中列出了经常用到的设置,详细的设置信息请参照参考资料
VB摄像头监控
该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制
perlvar - Perl 预定义变量
NAME perlvar - Perl 预定义变量 DESCRIPTION 预定义名称 后面列出的名称对 Perl 来说具有特殊含义。 大多数标点名称都有合理的助记方法或类似于在 shell 中的用法。 然而,如果你就是想用长变量名,那只要在程序开头加上 use English; 即可。这样会为所有短名称在当前包中创建长名
STM32F407中文手册
STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。
jre9下载 jdk9
(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】
Perl常用的预定义变量
Perl提供了大量的预定义变量,下面列举了常用的一些预定义变量: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $_在执行输入和模式搜索操作时使用的默认空格变量 $.文件中最后处理的当前行号 $@由...
OV9734 DATASHEET,完整规格书
OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等
Perl中预定义的一些常见特殊变量
一、正则表达式特殊变量:1、$n:包含上次模式匹配的第n个子串2、$&:前一次成功模式匹配的字符串3、$`:前次匹配成功的子串之前的内容4、$’:前次匹配成功的子串之后的内容5、$+:前一次使用括号的模式匹配的字符串.二、文件句柄特殊变量:1、$|:如果设置为零,在每次调用函数write或print后,自动调用函数fflush,将所写内容写回文件2、$%:当前输出页号3、$=:当前每页长度...
Perl 特殊变量
perlvar - Perl 预定义变量 DESCRIPTION 预定义名称 后面列出的名称对 Perl 来说具有特殊含义。 大多数标点名称都有合理的助记方法或类似于在 shell 中的用法。 然而,如果你就是想用长变量名,那只要在程序
Perl 内置变量中文手册
<br />Perl 很喜欢"偷懒" 非常热衷与使用老地方.或者其他简写,甚至是口语化的语句......<br /> <br /> 所有想要熟悉Perl 需要对这些预定义或者所谓的共识都研究过才可以..<br /> <br />NAME<br /> perlvar - Perl 预定义变量<br />DESCRIPTION<br /> 预定义名称<br /> 后面列出的名称对 Perl 来说具有特殊含义。<br /> 大多数标点名称都有合理的助记方法或类似于在 shell 中
Perl特殊变量(flw等翻译)
NAME perlvar - Perl 预定义变量DESCRIPTION 预定义名称 后面列出的名称对 Perl 来说具有特殊含义。 大多数标点名称都有合理的助记方法或类似于在 shell 中的用法。 然而,如果你就是想用长变量名,那只要在程序开头加上 use English; 即可。这样会为所有短名称在当前包中创建长名称别名。 其中一
perl 常用内置 变量 速查表
$- -- 当前页可打印的行数,属于Perl格式系统的一部分 $! -- 根据上下文内容返回错误号或者错误串 $" -- 列表分隔符 $# -- 打印数字时默认的数字输出格式 $ -- Perl解释器的进程ID $% -- 当前输出通道的当前页号 $Content$amp; -- 与上个格式匹配的字符串 $( -- 当前进程的组ID $) -- 当前进程的有效组ID $* -- 设置1表示处理多行格式.现在多以/s和/m修饰符取代之. $, --
Perl特殊变量(转)
NAME perlvar - Perl 预定义变量 DESCRIPTION 预定义名称 后面列出的名称对 Perl 来说具有特殊含义。 大多数标点名称都有合理的助记方法或类似于在 shell 中的用法。 然而,如果你就是想用长变量名,那只要在程序开头加上 use English; ...
perl 中的特殊内置变量
$- 当前页可打印的行数,属于Perl格式系统的一部分 $! 根据上下文内容返回错误号或者错误串 $” 列表分隔符 $# 打印数字时默认的数字输出格式 $$ Perl解释器的进程ID $% 当前输出通道的当前页号 $& 与上个格式匹配的字符串 $( 当前进程的组ID $) 当前进程的有效组ID
Perl特殊变量
<br />本文由 [color=red]chaoslawful[/color] 和鄙人共同翻译完成。 <br />我原来翻译过一部分,不过没有翻完,后来幸亏 chaoslawful 的努力,所以才终于完成此文。 <br />最新版本可以从这里获取(POD 格式): <br />http://svn.perlchina.org/trunk/POD2-CN/lib/POD2/CN/perlvar.podNAME <br /> perlvar - Perl 预定义变量 <br /><br />DESC
PERL各个符号代表的意思
$- 当前页可打印的行数,属于Perl格式系统的一部分 $! 根据上下文内容返回错误号或者错误串 $” 列表分隔符 $# 打印数字时默认的数字输出格式 $$ Perl解释器的进程ID $% 当前输出通道的当前页号 $& 与上个格式匹配的字符串 $( 当前进程的组ID $) 当前进程的有效组ID $* 设置1表示处理多行格式.现在多以/s和/m修饰符取代之. $, 当前输出字段分
以空格为分隔符读取内容给两个变量_perl 第七弹 变量 IV
记得点击蓝字关注我们哦!01上期回顾哈希是一组无序的键/值对哈希的名字必须以%开头哈希的键是唯一的通过访问哈希的键即可获取键对应的值对哈希指定的键再次赋值,即可更新使用delete函数,通过哈希指定的键删除键值对添加 key/value 对可以通过赋值来完成02预定义变量Perl提供了大量的预定义变量,下面列举了常用的一些预定义变量:$! 获取当前错误信息值,常用于...
2万+



被折叠的 条评论
为什么被折叠?



