Variable | Description |
---|---|
$_$ARG | newline. |
\t | Which is the default variable used to store the current values. |
$/ | Which is the input record seperator and have the default value of '\n' which is new line charecter. |
$0 or $PROGRAM_NAME | Which stores the file name of the perl script. |
$. | Which holds the current reading line number. |
$\ | Which is the output record seperator and default values of these variable should be emepty and user can assign value to these variable. Which will be used by the print() statement while printing the output. |
$, | Which is the output field seperator and default values of these variable should be zero and user can change the value to these variable. Which will be used by the print() statement while printing the output. |
$# | Which is the variable used for the output format while pinting the numbers. |
$=$FORMAT_LINES_PER_PAGE | Which hold the current page length of the read file. |
$%$FORMAT_PAGE_NUMBER | Which hold the current page number of the read file. |
$~$FORMAT_NAME | Format Name: Which hold the current selected output by default the file handle name format. |
$-$FORMAT_LINES_LEFT | Which holds the number of lines left to print from the page. |
$^$FORMAT_TOP_NAME | Which is used to hold the heading format of the file handler by default which will be TOP followed by file handle name. |
$|$OUTPUT_AUTOFLUSH | Which is used to flush the output buffer after every write() or print() nd the default value is zero. |
$? | Status code : Pipe and system call. which Return status of the executed command. |
$$ | Will hold the running process number of Perl interpreter. |
Variable | Description |
---|---|
@INC | Holds a list of methods, wherever Perl library modules or scripts are often looked into whereas executing the present script. This @INC is used by use and require statements to appear into those methods for library modules. |
@ARGV | Which stores the passed command line arguments |
@_ | Which are used in subroutines when ever passing the parameters to subroutine. |
@F | Which is the array into which input lines are stored when auto split -a. |
Variable | Description |
---|---|
%INC | File name will be the keys which will pass the values to those values by using do, use and require. |
%ENV | System enveronment variables. |
%SIG | Signals handler. |