One thing that's wrong was that he chose to have use strict
and use warnings
, making it look like real code. If he really wanted to post "pseudo code" and not be misunderstood, he should have made it not look like real Perl so much.
I'm not saying that it was wrong for him to post what he did, it's just quite reasonable that the inconsistency of posting "psuedo-code" with use strict would cause some people to criticize. It was mainly his poor reaction to that criticism that seems to have offended some people.