Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 pondering the Monastery: (12)
As of 2014-09-02 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls