开发者

Where can I find information about Perl's special variables?

开发者 https://www.devze.com 2022-12-25 12:04 出处:网络
Perl has quite a few special variables such as @F, $!, %! ... e开发者_如何转开发tc. Where are all Perl\'s special variables documented?All special variables used by Perl are documented in perldoc perl

Perl has quite a few special variables such as @F, $!, %! ... e开发者_如何转开发tc. Where are all Perl's special variables documented?


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.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消