Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Bad index while coercing array into hash

by fglock (Vicar)
on Sep 26, 2002 at 20:46 UTC ( #201048=note: print w/ replies, xml ) Need Help??


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] =

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://201048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-06-25 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (326 votes). Check out past polls.