in reply to Re^3: printing the line after grepping
in thread printing the line after grepping

Equally magical? Nothing gets assigned to $_ in the latter case.

Replies are listed 'Best First'.
Re^5: printing the line after grepping
by ikegami (Patriarch) on Nov 11, 2009 at 18:29 UTC
    Yes. In both cases, the code that's executed is different than the code in the file.