Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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??


in reply to [Answered]: Grep: What is the reason following example code gives same result for both shift and $_?

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.
  • Comment on Re: Grep: What is the reason following example code gives same result for both shift and $_?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-23 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found