Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Better way to define global variables

by govindkailas (Acolyte)
on Jul 25, 2013 at 13:40 UTC ( #1046340=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Utilities;
    use Exporter;
    ...
    
    our $SYS_DIR="/path/to/sys";
    1;
    
  2. or download this
    use Utilities;
    use strict;
    print "This is the value for SYS_DIR=$SYS_DIR";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-07-14 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (259 votes), past polls