What is indirect object notation, why is it bad, and how does one avoid it?
问题 The title pretty much sums it up, but here's the long version anyway. After posting a small snippet of perl code, I was told to avoid indirect object notation, "as it has several side effects". The comment referenced this particular line: my $some_object = new Some::Module(FIELD => 'value'); As this is how I've always done it, in an effort to get with the times I therefore ask: What's so bad about it? (specifically) What are the potential (presumably negative) side effects? How should that