in reply to Re: max_strl - Get length of longest string in a hash
in thread max_strl - Get length of longest string in a hash
in other words: when the longest is deleted, which one is then the longest? You would need to set a flag that would force a re-scan on delete of the longest.$hash{a} = '1234567'; $hash{b} = '12345678'; $hash{c} = '123456789'; delete $hash{c};
Implementation details, maybe, but also maybe a can of worms you don't want to get into... ;-)
Liz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: max_strl - Get length of longest string in a hash
by DrHyde (Prior) on Aug 21, 2003 at 13:55 UTC | |
by liz (Monsignor) on Aug 21, 2003 at 14:12 UTC | |
by DrHyde (Prior) on Aug 21, 2003 at 15:30 UTC | |
by liz (Monsignor) on Aug 21, 2003 at 15:38 UTC |