in reply to Pattern-matching hash keys
In the conditional of lines 24-26, and again in 28-30, you're testing for the presence of a hash key, then populating that level as an array. Your Dumper output confirms that the array treatment wins. You don't push onto a hash, you assign. Since you have an array, the hash key never exists and each $policy seen goes into the array, duplicate or not.
Aside from that, I'm unsure what you're asking.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern-matching hash keys
by blink (Scribe) on Sep 20, 2003 at 20:44 UTC |