in reply to [Answered]: Grep: What is the reason following example code gives same result for both shift and $_?
no, your idea is not right... $_ is not really how args get passed, $_ is global and so in this codd its the same $_ in the sub and in the grep. "shift" shifts @_, and @_ is the args of the sub, in your code @_ is always just ($_) so thats why its the same here