Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: What is the scope of $_?

by Athanasius (Abbot)
on Nov 26, 2012 at 14:55 UTC ( #1005681=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub xyz()
    {
      foreach(4..5)
      {
        ...
    
  2. or download this
    sub xyz()
    {
      foreach local $_ (4..5)
      {
        ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-03-04 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (119 votes), past polls