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