in reply to Re^3: wantarray - surprise behaviour
in thread wantarray - surprise behaviour

(not sure of the proper etiquette when replying to several replies, so I replied to the last one)

Thanks to all for your help fellow monks!

blah() is not called "as a hash value".

Sorry, ikegami, I knew as I was writing that, that it wasn't worded very well.

But anyway...
So it's the fact that the blah() call is in a list, that gives the function list context, and therefore, wantarray returns true.

TheEnigma