Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Style: buried variables or double referencing?

by punch_card_don (Curate)
on Aug 20, 2005 at 14:18 UTC ( [id://485384]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($some_variable eq 'x') {
       $count = 14;
    ...
    for $i (0 .. $count) {
       do some stuff
    }
    
  2. or download this
    #constant declaration area at top of script
    $value_1 = 14;
    ...
    for $i (0 .. $count) {
       do some stuff
    }
    
  3. or download this
    #constant declaration area at top of script
    $count{'x'} = 14;
    ...
    for $i (0 .. $count{$some_variable}) {
       do some stuff
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://485384]
Approved by Old_Gray_Bear
Front-paged by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found