Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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.

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 goofing around in the Monastery: (6)
As of 2024-03-28 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found