On Fri, Jun 15, 2001 at 01:37:51PM -0700, Crystal Gruetzmacher 
([EMAIL PROTECTED]) wrote:
> what is $_ for?

It's the "default" variable an is used for a great many things in Perl.

In this case, it's where each line of a file ends up when you use the 
construction:

while (<FILE>) {
  # each line of file in turn appears in $_
}

You can find much more info on it in the perlvar manual page.

Dave...

-- 

  Don't dream it... be it

Reply via email to