Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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) {


Comment on Re: Bad index while coercing array into hash
Select or Download Code
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 lurking in the Monastery: (6)
As of 2014-07-28 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls