Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 wandering the Monastery: (7)
As of 2014-12-25 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls