Keep It Simple, Stupid | |
PerlMonks |
Re: How to Ask a Datastructures Question (with Test::More)by demerphq (Chancellor) |
on Oct 06, 2005 at 12:24 UTC ( [id://497897]=note: print w/replies, xml ) | Need Help?? |
Yeah, well, personally I'm not a huge fan of Test::More::is_deeply(). And I think I said it in that thread too. Anyway.... A quick look at the two data structures using a proper dumper reveals the problem, as does a cursory review of the code. Your problem is that the code doesnt change the array being pushed into when a new key is found. The following is more or less how I would implement it.
--- $world=~s/war/peace/g
In Section
Meditations
|
|