Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Using packages to store global configuration vars

by fuzzyping (Chaplain)
on Sep 06, 2009 at 22:15 UTC ( [id://793840]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using packages to store global configuration vars
in thread Using packages to store global configuration vars

That was it! Thanks for the pointer. I think I'll try Exporter again now. :)

-fp
  • Comment on Re^4: Using packages to store global configuration vars

Replies are listed 'Best First'.
Re^5: Using packages to store global configuration vars
by LanX (Saint) on Sep 06, 2009 at 23:26 UTC
    I think I'll try Exporter again now. :)

    actually in your rather restricted case, I'd personally prefer a simple require without importing in the main namespace.

    use strict; use lib "/tmp"; require "Conf.pm"; print $Conf::pckvar;

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found