Quoth kj <>:
>
> I'm writing a library that is supposed to be customized with
> potentially sensitive info (passwords, etc.). All these variables
> are defined in a file MyModule/Config.pm:
>
> package MyModule::Config;
>
> our %Config = (
> user => 'yours_truly',
> password => 'topsecret',
> # etc., etc.
> );
>
> During development, my working copy of MyModule/Config.pm holds
> real values for various variables, which obviously I don't want to
> publicize.
> Hence, there's a major conflict between the desire to make our CVS
> repository world-accessible, and the the developers' wish to be
> able to commit to the repository files that have sensitive information.
You could perhaps always keep the fake data in your dev tree (and in
CVS), and then have a separate directory /path/to/private with a
different MyModule/Config.pm in containing sensitive data. If you add
this /path/to/private to $PERL5LIB in your working environment, perl
will find and use the real data while you are testing, but the real data
never comes near the dev tree so definitely won't get shipped or checked
into CVS.
Ben
--
Joy and Woe are woven fine,
A Clothing for the Soul divine William Blake
Under every grief and pine 'Auguries of Innocence'
Runs a joy with silken twine.