Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Seeking the right way to override global variables

by contra-sh (Acolyte)
on Sep 26, 2014 at 13:37 UTC ( [id://1102131]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Exporter;
    
    ...
    
    
    1;
    
  2. or download this
    
    use consts;
    ...
    }
             
    1;
    
  3. or download this
    use consts;
    
    ...
    use logging;
    
    logging_func();
    
  4. or download this
    Import...
    VAR1 : [var1]
    ...
    Running function...
    VAR1 : [override1]
    VAR2 : [override2]
    
  5. or download this
    our $VAR1="var1";
    our $VAR2="var2";
    
    1;
    
  6. or download this
    use consts;
    our ($VAR1, $VAR2);
    ...
    }
             
    1;
    
  7. or download this
    use consts;
    
    ...
    use logging;
    
    logging_func();
    
  8. or download this
    Import...
    VAR1 : [var1]
    ...
    Running function...
    VAR1 : [override1]
    VAR2 : [override2]
    
  9. or download this
    use Exporter;
    
    ...
    
    
    1;
    
  10. or download this
    use consts;
    
    ...
    }
             
    1;
    
  11. or download this
    use consts;
    
    ...
    use logging;
    
    logging_func();
    
  12. or download this
    Import...
    VAR1 : [var1]
    ...
    Running function...
    VAR1 : [override1]
    VAR2 : [override2]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-28 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found