I just ran into a situation I'm unclear of how to resolve in the best way:
This question: subtract two arrays in Perl - is really 2 questions in one:
- Stated question (How do I do X) - is a duplicate of an older question
- UN-stated - but very clear - question ("I wrote code Y to do X and it didn't work: Why?") is a pretty good question in its own right.
I have 2 options:
Close the question as a duplicate (I have gold-tag binding close vote); and asnswer the "what did I do wrong" in comments.
This is what I've done now.
Don't close the question yet; post my answer of what did he do wrong - which seems pretty useful - as an answer - and THEN close the question as a duplicate.
#2 seems kind of hypocritical; but IMHO is better for the future readers who get the benefit of my explanation of why the OP made a subtle mistake.