hanoi( $n - 1, $start, $extra, $end, $move_disk ); $move_disk->( $n, $start, $end ); hanoi( $n - 1, $extra, $end, $start, $move_disk );