Perl environment variable Summary

Source: Internet
Author: User

$-Number of printable lines on the current page, which belongsPerlPart of the format system
$! Returns the error code or string based on the context content.
$ "List Separator
$ # Default digital output format when printing numbers
$PerlInterpreter process ID
$ % Current page number of the current output channel
$ & String matching the previous format
$ (Group ID of the current process
$) Valid group ID of the current process
$ * Setting 1 indicates processing the multiline format. It is replaced by the/s and/M modifiers.
$, Delimiter of the current output field
$. Current row number of the last Read File
$/Delimiter of the current input record. The default value is a new line.
$: Character setting. Subsequent strings are separated to fill continuous fields.
$; Delimiter used to simulate multi-dimensional arrays.
$? Returns the status of the last external command.
$ @PerlError message returned by the interpreter from the eval statement
$ [Index number of the first element in the array
$/Delimiter of the current output record
$]PerlThe sub-version number of the interpreter.
$ ^ Name of the top page output format of the current channel
$ ^ A variables used to save formatted data before printing
$ ^ D debug flag value
$ ^ E Operating System Extension error message in non-Unix environment
$ ^ F maximum file bundle operator Value
$ ^ H check status of the syntax activated by the compiler
$ ^ I built-in control editor Value
$ ^ L form feed sent to the output channel
$ ^ M backup memory pool size
$ ^ O operating system name
$ ^ P specifies the internal variable of the current debugging Value
$ ^ R result of the last evaluation of the regular expression Block
$ ^ S current interpreter status
$ ^ T start from the new century, and the start time of the notebook is calculated in seconds.
$ ^ W current value of the warning Switch
$ ^ XPerlName of the binary executable code
$ _ Default input/output and format matching space
$ | Controls the buffer of the currently selected output file handle
$ ~ Name of the current report format
$ 'String before matching information in the previous format
$ 'String after matching information in the previous format
$ + The last parenthesis matching the previous regular expression search format
$ <Real id of the user currently executing the interpreter
$ Contains the matching result in parentheses corresponding to the previous Regular Expression
$ = Number of printable rows on the current page
$> Valid user ID of the current process
$0 contains the file name of the script being executed
$ Argv current file name when reading from the default file handle
% ENV Environment Variable list
% Inc list of files contained through do or require
% Sig signal list and Processing Method
@ _ List of parameters passed to the subroutine
@ Argv: List of command line parameters passed to the script
@ INC: List of directories to be searched during module Import
$-[0] and $ + [0] represent the starting and ending positions of the currently matched Regular Expression in the matched string

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.