in reply to [Answered]: Grep: What is the reason following example code gives same result for both shift and $_?
See the documentation for @_ and shift. Those two in combination should explain it quite well, I think.