Ouch. That has exactly the semantics of:$blah[++$#blah] = 'New element';
but without all the readable syntax.push @blah, 'New element';
Please, never ever ever suggest such an atrocity again!
{grin}
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Re: array index -1 oddity
by merlyn
in thread array index -1 oddity
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |