in reply to Want a Hashref. Getting a List in Scalar Context.

Regarding the explicit vs implicit 'return' debate, it seems relevant to point out that reliance on the implicit return led hardburn (the original poster) to misunderstanding his own code.

I believe any systematic practice that leads to more predictable code behavior should be viewed as good, and systematic use of 'return's is one of those.

David

  • Comment on Re: Want a Hashref. Getting a List in Scalar Context.