Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
How to Ask a Datastructures Question (with Test::More)by tphyahoo (Vicar) |
on Oct 06, 2005 at 10:00 UTC ( [id://497872]=perlmeditation: print w/replies, xml ) | Need Help?? |
This is the fourth post in the How to Ask a Question (With Test::More) series, and assumes you have read the first, main post. Since you are asking a data structures question, you have hopefully already read perllol and perldsc before coming here, like our hypothetical question asker. Even if you haven't, though, you will probably get helped anyway.... and if you base your post on this handy template and you may even get helped with the actual problem you are having, rather than some other problem ;)
******************BEGIN QUESTION TEMPLATE************************ Masterful Monks, I am tripping over this complicated datastructure. I have read perllol annd perldsc, but my brain hurts, and I pray one of your multitude will take a few minutes out of their day to take my pain away. My test just keeps failing no matter what I do. When I dump the data, there seem to be two extra elements in my SET2 hashref. How are they getting there? What the heck is causing this to fail? Output from perl datastructure.pl > output.txt 2>&1 output.txt is:
What the heck am I doing wrong? ******************END QUESTION TEMPLATE************************ This post was inspired by, and reuses code from Re: Fail to update an array in HoAoA and Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!.
Back to
Meditations
|
|