$ARG

(idea) by Sverre Fri Apr 06 2001 at 13:19:55
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

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.