in reply to constant hash values?

You may want to have a look at Hash::Util.

Just my 2 cents, gjb

Update: Sorry, I should have mentioned that Hash::Util is for Perl 5.8.x. It's part of the standard distribution, also in ActiveState Perl.

Replies are listed 'Best First'.
Re: Re: constant hash values?
by Anonymous Monk on Sep 27, 2003 at 10:22 UTC
    Thanks for your response. OK, my bad. I see Hash::Util on CPAN, but I don't see it on ActiveState. Other than compiling it myself from CPAN, I would think that it must be on ActiveState somewhere? Do you know the incantation? Thanks again.
      Anonymous Monk,
      What version of AS do you have? Chances are if you have 5.8 (which is required for Hash::Util), you already have it. Try executing:
      c:\>perl -MHash::Util -e "print 'ok';"
      If that doesn't cause an error (be sure to specify path to perl.exe if not in PATH), then you are all set. If you do not have AS 5.8, you can upgrade. If you have 5.8 and it failed - you should probably re-install since you have at least one issue. Finally, if you need this functionality for an earlier version or you just want to learn for the sake of learning, you can create your own module by creating a tied hash. See perldoc perltie

      Cheers - L~R