在哪里可以找到有关 Perl 特殊变量的信息?

发布于 2024-08-27 12:42:08 字数 99 浏览 4 评论 0原文

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事和酒 2024-09-03 12:42:08

Perl 使用的所有特殊变量都记录在 perldoc perlvar 中。您可以通过在命令行中输入 perldoc perlvar 来访问 perl 附带的本文档版本。

All special variables used by Perl are documented in perldoc perlvar. You can access the version of this documentation that came with your perl by entering perldoc perlvar on the command line.

纵性 2024-09-03 12:42:08

Perl 使用的所有特殊变量都记录在 perldoc perlvar 中。您可以通过运行以下命令在计算机上查看此文档。

perldoc perlvar

特定特殊变量的文档也可以使用 perldoc -v 在命令行中访问:

perldoc -v @F

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

perldoc -v '$!'

或者

perldoc -v "$!"

如果您使用的是 cmd.exe

欲了解更多信息:

perldoc -h
perldoc perldoc

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

perldoc perlvar

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

perldoc -v @F

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

perldoc -v '$!'

or

perldoc -v "$!"

if you are using cmd.exe.

For more information:

perldoc -h
perldoc perldoc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文