in reply to A quandry in Towers of Hanoi
which means that they have invisible 0-width entries on top of each stack. Get rid of those and your bug goes away.my @polea = ""; my @poleb = ""; my @polec = "";
Incidentally if you change the way you print slightly, you can turn warnings back on:
(You have to change this in two locations.)for (my $len = 0 ;$len <= $numdisks; $len++) { print join "\t\t\t", map {$_->[$len] || ""} \@polea, \@poleb, \@po +lec; print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A quandry in Towers of Hanoi
by pmonk4ever (Friar) on May 15, 2009 at 16:42 UTC | |
by tilly (Archbishop) on May 15, 2009 at 17:13 UTC | |
by pmonk4ever (Friar) on May 19, 2009 at 01:34 UTC |