[Israel.pm] negative array indexing

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Sun Feb 15 04:21:23 PST 2004


Hi,

Negative array indexing is allowed in Perl.
Perl allows you also to give indexes that are out of the current limits
(and creates for you the missing elements)

What about using both features together ?

@a=(5,6,7);
$a[-5]=22;

Is this one allowed ?

Thanks

Yossi




More information about the Perl mailing list