Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Include external variables?

by pushtaev (Sexton)
on Dec 03, 2012 at 05:26 UTC ( [id://1006787]=note: print w/replies, xml ) Need Help??


in reply to Include external variables?

If you use Moose, take a look at MooseX::SimpleConfig.

If you don't but still use OOP, take a look at it anyway, just to understand the idea.

If you don't use OOP at all, I recommend you to create a big and complex hash variable and export it, instead of export all this "$font44".

Look at http://perldoc.perl.org/Exporter.html to learn about Exporter.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-24 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found