in reply to Re: Dumb Mistakes
in thread Dumb Mistakes

learning that the form $var->{key}{key} is legit.

It is legit, but I wonder how many monks use it. I personally like the -> and I always write $var->{foo}->{bar}. I find it aesthetically pleasant as well as a good reminder of the fact that $var->{foo} is a reference and not a hash.

I guess I am not the only one, given the overwhelmingly negative reaction to the replacement of the arrow by a dot in Perl 6 (which was probably Larry's goal now that I think of it, just to drive the point that Perl 6 is different from Perl 5 and that nothing is sacred).

Replies are listed 'Best First'.
Re: Re: Re: Dumb Mistakes
by demerphq (Chancellor) on Oct 03, 2001 at 16:27 UTC
    I'd like to know the rationale behind the decision before completely rejecting the change (see #43 thanks tilly) but it does seem to be an odd thing to change. Also if I've heard correctly the concat operator will be a underbar? Now that just reminds me of the broken VB run on statement syntax, which IMO is a bad recommendation. If you see what I mean.

    :-) Yves
    --
    You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)