http://www.perlmonks.org?node_id=465721


in reply to Re: References, hashes, and tie() -- oh my
in thread References, hashes, and tie() -- oh my

Incidently, my ($hash) = @_; is spelled better as my $hash = shift;

.. I couldn't disagree with this more....

dEvNuL
  • Comment on Re^2: References, hashes, and tie() -- oh my

Replies are listed 'Best First'.
Re^3: References, hashes, and tie() -- oh my
by Limbic~Region (Chancellor) on Jun 11, 2005 at 00:33 UTC
    devnul,
    Not that it has anything to do with jacque's problem, but what specifically do you disagree with? That my ($hash) = @_; shouldn't be spelled differently at all, or the way I chose to spell it? The only way I can see to improve the readability would have been to say my $hash = shift @_;

    Update: Ok, after hearing several arguments in the CB along with jZed's reply, I am convinced that it is not necessarily better to write it that way. I doubt I will change how I write my code but I won't think it is deficient when others do.

    Cheers - L~R