in reply to Determining presence of odd number of hash elements, other syntax problems

Bad idea letting anyone edit code (one wonders at the source code change control system you have). Don't store the hash in code, store it in a file form such as YAML. YAML is fairly easy to read and edit, but it might be worth considering writing an edit tool (in which case Storable would be an option).

The code to load YAML into a Perl hash is very easy, and now you can remove everyone's write access (except your own) to your program code.
  • Comment on Re: Determining presence of odd number of hash elements, other syntax problems

Replies are listed 'Best First'.
Re^2: Determining presence of odd number of hash elements, other syntax problems
by nicku (Novice) on Jul 20, 2011 at 11:08 UTC
    Bad idea letting anyone edit code

    I confessed to it being crazy! There used to be six of us, all competent, never a problem. Now there are many more, some who know little Perl.

    (one wonders at the source code change control system you have)

    RCS for these files, CVS for all the code that reads them.

    Don't store the hash in code, store it in...

    Well, a database would be better. The problem is it's complex and large; the code that manipulates it will take a while to write.