Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Declaring a Variable [for BEGINNERS]

by scooper (Novice)
on Dec 28, 2006 at 04:26 UTC ( #591978=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $region (@regions) {
        # something happening in the loop
    }
    
  2. or download this
    my $region
    
    foreach $region (@regions) {
        # something happening in the loop
    }
    
  3. or download this
    my $latest_region;
    
    ...
    }
    
    print "last region considered was $latest_region\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://591978]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (None)
    As of 2017-04-28 09:17 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I'm a fool:











      Results (519 votes). Check out past polls.