in reply to Re: split problem
in thread split problem

You're getting the error because you're attempting to assign a value to an element past the end of the array.

There is no such error in perl, arrays don't have end, this is a bug

Replies are listed 'Best First'.
Re^3: split problem
by kcott (Archbishop) on Nov 29, 2016 at 23:58 UTC
    "There is no such error in perl, arrays don't have end ..."

    Quite correct. I have stricken what I wrote from my post.

    — Ken

Re^3: split problem
by stevieb (Canon) on Nov 29, 2016 at 23:30 UTC

    Yep:

    perl -wMstrict -E 'my @a; $a[16]=0; say @a;'