in reply to Bad index while coercing array into hash

    for my $i (1..$POLYGONS_MAX_Y) {

- perl arrays start in "zero" by default. Try:

    for my $i (0..$POLYGONS_MAX_Y - 1) {

Replies are listed 'Best First'.
Re: Re: Bad index while coercing array into hash
by rbc (Curate) on Sep 26, 2002 at 21:02 UTC
    Thanks for the reply.
    I tried it out now my output looks like so ...
    1 -> 3 | 7 | -2.5 1 -> 5 | 7 | 1.5 5 -> 11 | 13 | 0 7 -> 11 | 7 | 1.5 7 -> 9 | 7 | -2.5 3 -> 9 | 2 | 0 ET(0] = NULL Use of uninitialized value in concatenation (.) or string at ./buildET +.pl line 49. Use of uninitialized value in concatenation (.) or string at ./buildET +.pl line 49. Bad index while coercing array into hash at ./buildET.pl line 49. ET(1] =