Heidegger has asked for the wisdom of the Perl Monks concerning the following question:

Hello, Monks, I want to find out if there's a ready package for storing global application properties. At the moment I'm using my own Properties.pm module, which I instantiate when I need it and call methods, like $properties->root_path(). I'm sure I'm inventing the wheel here. I'd liked to find a ready package for this, something like this: property strings are in the text file, but the properties itself are accessible in an object-oriented manner.

Replies are listed 'Best First'.
Re: Global application properties management
by Fletch (Bishop) on Jan 24, 2003 at 14:38 UTC

    Look at AppConfig and maybe create a singleton instance of that to use (e.g. $p = Properties->instance(); ... print $p->root_path; ...)

Re: Global application properties management
by valdez (Monsignor) on Jan 24, 2003 at 14:56 UTC

    Fletch++, IBM developerWorks has two nice articles about AppConfig: Part 1 and Part 2

    Ciao, Valerio

Re: Global application properties management
by John M. Dlugosz (Monsignor) on Jan 24, 2003 at 21:11 UTC
    I think you're describing what the Windows Registry is for. The module Tie::Registry is very handy to access it with.