in reply to Re^2: Search, Match, Compare, and Report
in thread Search, Match, Compare, and Report

while (<...>)
is short for
while (defined($_ = <...>))

local *_; prevents the clobbering of the parent's $_. my $_; would also do the trick in Perl 5.10+

Replies are listed 'Best First'.
Re^4: Search, Match, Compare, and Report
by ahmad (Hermit) on Feb 01, 2010 at 12:29 UTC

    Thanks for clarifying