Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-08-29 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls