in reply to Re: Re: Re: Re: Want a Hashref. Getting a List in Scalar Context. in thread Want a Hashref. Getting a List in Scalar Context.
Adding an explicit return is just like adding "unneeded" parentheses: a way of expressing things more explicitly (and maybe more clearly) if the author wants. Let people write with their own style; I see no need for disdain or for fear that explicit returns will be mandatory in the future. I agree that freedom should remain one of the attractive features of Perl; people who want to have only one way of doing things have other languages to choose from.
|