in reply to Adventures in Debugging a Perl/Tk Game
Thanks for sharing your puzzle with us! I take no small pride in saying that I saw the bug before I read the spoiler (to confirm what I thought I saw). My hubris is enhanced.
I was suspicious of this for a moment:
map { my_delete($canvas, $_) } @$ptext;
Rather than map in void context, how about this:
my_delete($canvas, $_) for @{$ptext};
...or even:
for (@{$ptext}) { my_delete($canvas, $_) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adventures in Debugging a Perl/Tk Game
by liverpole (Monsignor) on Jan 16, 2008 at 14:52 UTC | |
by kyle (Abbot) on Jan 16, 2008 at 17:43 UTC |