Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 examining the Monastery: (17)
As of 2014-12-18 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (51 votes), past polls