in reply to Maintaining state in modules

If the lifetime of the configuration information is relatively short, you might consider using temp directories for the file homes.

Otherwise, something like File::HomeDir might assist in homesteading your files.

Simply assuming "current directory" is asking for trouble if you ask me, whether it be from inconsistencies, security issues, or permission problems.

Matt

Replies are listed 'Best First'.
Re: Re: Maintaining state in modules
by Anonymous Monk on Sep 06, 2002 at 14:23 UTC
    I agree with Matt in that perm problems will cause errs on your scripts. You could get around them by installing with uid 0, but that would be bad. What about letting them specify a state config file? Maybe /etc/myApp.state?