next up previous contents
Next: Scalar Data Up: Variables Previous: Assignments   Contents

System Variables

There are many built-in variables which control the behavior of perl; each of the variables has a terse name, as well as one or more mnemonic ones. To access the long names in Table 2.1, include the line ``use English;'' in your program.


Table 2.1: Some Common System Variables
Name Long Name Name Long Name
$/ $INPUT_RECORD_SEPARATOR $\ $OUTPUT_RECORD_SEPARATOR
$, $OUTPUT_FIELD_SEPARATOR $. $INPUT_LINE_NUMBER
$< $UID $> $EUID
$$ $PROCESS_ID $& $MATCH
$! $OS_ERROR $? $CHILD_ERROR
$| $OUTPUT_AUTOFLUSH $^T $BASETIME
$ARGV name of file being read @ARGV array of command line args




Phil Spector 2002-10-18