Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Better way to define global variables

by choroba (Chancellor)
on Jul 25, 2013 at 13:44 UTC ( #1046343=note: print w/replies, xml ) Need Help??


in reply to Better way to define global variables

You do not want to export the value of the variable, but the variable itself. Use
@EXPORT = qw($SYS_DIR);

Also, the Exporter's documantation states a different way how to make a package use it. Change the other line to

use Exporter 'import';
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1046343]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2016-12-03 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.