Pre-defined variables commonly used in Perl

Source: Internet
Author: User

Perl provides a number of pre-defined variables, and some of the predefined variables that are commonly used are listed below:

$_                   The default space variable to use when performing input and mode search operations $.               The current line number in the      file that was last processed [email protected]                    Perl syntax error message provided by the most recent eval () operator $!                    get current error message value, commonly used in die command $$                    The PERL process number that is executing the script $perl_version / $^v perl version, child version, and revision information for the interpreter @argv                 contains command-line arguments argv                  a special file handle that iterates through all the file names that appear in the @argv @inc        &nbspSearch path for;         library file @_                    in subroutines, the @_ variable contains the variable content passed to the subroutine%env                  associative array type variable%ENV contains current environment information%sig                  associative array type variable% The sig contains a handle to the signal content $|                   if nonzero, immediately flush on output$<,$>                real user id,  Effective user id$1,$2, ...          ordered  parentheses regex capture$/                   inpuT record separator 


This article is from the "Tiandaochouqin" blog, make sure to keep this source http://lavenliu.blog.51cto.com/5060944/1637803

Pre-defined variables commonly used in Perl

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.