在哪里可以找到有关Perl特殊变量的信息? [英] Where can I find information about Perl's special variables?

查看:71
本文介绍了在哪里可以找到有关Perl特殊变量的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Perl有很多特殊变量,例如 @F $! %! ...等。在哪里记录了Perl的所有特殊变量?

Perl has quite a few special variables such as @F, $!, %! ... etc. Where are all Perl's special variables documented?

推荐答案

所有特殊变量 perldoc perlvar 中记录了Perl使用的文件。您可以通过运行

All special variables used by Perl are documented in perldoc perlvar. You can view this document on your computer by running

perldoc perlvar

在计算机上查看此文档。也可以使用 perldoc -v 在命令行中访问特定的特殊变量:

The documentation for a specific special variable can also be accessed at the command line using perldoc -v:

perldoc -v @F

您可能需要转义/引用一些变量以避免被shell插值:

You may need to escape/quote some variables to avoid interpolation by your shell:

perldoc -v '$!'

perldoc -v "$!"

如果您使用的是 cmd.exe

有关更多信息:

perldoc -h
perldoc perldoc

这篇关于在哪里可以找到有关Perl特殊变量的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆