Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Grep: What is the reason following example code gives same result for both shift and $_?by Perl300 (Friar) |
on Oct 09, 2017 at 22:02 UTC ( [id://1201055]=note: print w/replies, xml ) | Need Help?? |
Thank you Anonymous Monk and Hippo for your reply. I understand it better now. @_ is the way parameters are passed to subroutines, always! I was unable to figure out why $_ is also working but I know it now.
In Section
Seekers of Perl Wisdom
|
|