Perl magic variable. Also $_. Default input and pattern-matching variable.

Example:

while (<>) { # Loop through lines of standard input
  print $_;      # Print the line just read (which is magically set). 
  print;         # Does the same, because $_ is default
}

Back to Perl

Log in or register to write something here or to contact authors.