in reply to Re^2: How to introduce a frustrating bug with a single whitespace
in thread How to introduce a frustrating bug with a single whitespace

The whitespace bug described in the original node is the first bug I've had in a while that:
  • wasn't caught by syntax checking (it's valid Perl)
  • wasn't griped about with strict and warnings on
  • wasn't a design error

I've got one of those, though not a whitespace bug. Just recently I was messing with a data-structure that was supposed to be an array of arrays of arrays:

$rect_list = [ [ [0, 0], [3, 9 ] ], [ [5, 4], [3, 10] ], [ [7, 8], [9, 11] ]. [ [2, 4], [5, 15] ], [ [1, 9], [9, 13] ], ];

First question: Can you spot the bug? Second question: Do you know what it does?

  • Comment on complex data structure typo (was Re^3: How to introduce a frustrating bug with a single whitespace)
  • Download Code

Replies are listed 'Best First'.
Re: complex data structure typo (was Re^3: How to introduce a frustrating bug with a single whitespace)
by bobf (Monsignor) on Dec 31, 2007 at 02:44 UTC