SPUG: Precedence question

veritosproject at gmail.com veritosproject at gmail.com
Mon Jan 22 16:01:05 PST 2007

On 1/22/07, Jacinta Richardson <jarich at perltraining.com.au> wrote:
> veritosproject at gmail.com wrote:
> > does @$foo[3] parse as (@$foo)[3] or @{$foo[3]}?
> I would argue, that regardless of the answer, you should probably explicitly
> show your intent by using one of options on the right so that your maintainer
> doesn't have to ask.

Of course. I would probably use $foo->[3] in this case anyway, or just
use an array in the first place. This was hypothetical.

More information about the spug-list mailing list