in reply to Re: Maximum length of hash key ?
in thread Maximum length of hash key ?
My problem was to merge same hash values when their keys must be combined too.
For ex. %h=( a=>123, b=>123, c=>12);
the output will be :
%h =( "a;b"=>123 ,c=>12);
But because I wasn't sure about the allowed size of the key , I have used md5 hashes for keys. After that I used a temp hash of arrays to store different keys .
But nice to know that it's not limited , makes life much easier ;)
For ex. %h=( a=>123, b=>123, c=>12);
the output will be :
%h =( "a;b"=>123 ,c=>12);
But because I wasn't sure about the allowed size of the key , I have used md5 hashes for keys. After that I used a temp hash of arrays to store different keys .
But nice to know that it's not limited , makes life much easier ;)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Maximum length of hash key ?
by Marshall (Canon) on Aug 20, 2012 at 08:11 UTC | |
Re^3: Maximum length of hash key ?
by Anonymous Monk on Aug 19, 2012 at 21:51 UTC |
In Section
Seekers of Perl Wisdom