szabgab has asked for the wisdom of the Perl Monks concerning the following question:

Is there a comprehensive list of all the places where $_ is the default variable? perlvar only lists a couple of examples.

Replies are listed 'Best First'.
Re: What is using $_ ?
by bobf (Monsignor) on Dec 26, 2007 at 05:07 UTC
      thanks. My patch with some of this information was accepted and will probably be in 5.10.1.
Re: What is using $_ ?
by ambrus (Abbot) on Dec 27, 2007 at 08:12 UTC

    I think B::Lint can tell when you use $_ implicitly. Maybe you could get the list from its source, but don't expect a light bedtime read.

      Actually I think the above is wrong. B::Lint searches for explicit uses of $_, not the implicit uses.

      Sorry for the confusion.

A reply falls below the community's threshold of quality. You may see it by logging in.